summaryrefslogtreecommitdiffstats
path: root/ui/views/background.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-17 20:07:42 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-17 20:07:42 +0000
commitac89f0b08c4d660654b9396cc04e1c9a676707f8 (patch)
treeddf91320ac7fe3bf6dcc6f4aeafb401c7fdb3250 /ui/views/background.h
parent075969dc52d6b35c2607eb8078c33b3eedbef4c7 (diff)
downloadchromium_src-ac89f0b08c4d660654b9396cc04e1c9a676707f8.zip
chromium_src-ac89f0b08c4d660654b9396cc04e1c9a676707f8.tar.gz
chromium_src-ac89f0b08c4d660654b9396cc04e1c9a676707f8.tar.bz2
views: Do not pass SkColor by const-reference as it's defined as POD(integer).
This is a follow up to r128782. R=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10091049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/background.h')
-rw-r--r--ui/views/background.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/background.h b/ui/views/background.h
index 64f609c..b455f3b 100644
--- a/ui/views/background.h
+++ b/ui/views/background.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -43,7 +43,7 @@ class VIEWS_EXPORT Background {
virtual ~Background();
// Creates a background that fills the canvas in the specified color.
- static Background* CreateSolidBackground(const SkColor& color);
+ static Background* CreateSolidBackground(SkColor color);
// Creates a background that fills the canvas in the specified color.
static Background* CreateSolidBackground(int r, int g, int b) {
@@ -57,8 +57,8 @@ class VIEWS_EXPORT Background {
// Creates a background that contains a vertical gradient that varies
// from |color1| to |color2|
- static Background* CreateVerticalGradientBackground(const SkColor& color1,
- const SkColor& color2);
+ static Background* CreateVerticalGradientBackground(SkColor color1,
+ SkColor color2);
// Creates Chrome's standard panel background
static Background* CreateStandardPanelBackground();