summaryrefslogtreecommitdiffstats
path: root/ui/views/background.cc
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.cc
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.cc')
-rw-r--r--ui/views/background.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/background.cc b/ui/views/background.cc
index c84c441..74d2fda 100644
--- a/ui/views/background.cc
+++ b/ui/views/background.cc
@@ -18,7 +18,7 @@ namespace views {
// background in a solid color.
class SolidBackground : public Background {
public:
- explicit SolidBackground(const SkColor& color) {
+ explicit SolidBackground(SkColor color) {
SetNativeControlColor(color);
}
@@ -87,7 +87,7 @@ HBRUSH Background::GetNativeControlBrush() const {
#endif
//static
-Background* Background::CreateSolidBackground(const SkColor& color) {
+Background* Background::CreateSolidBackground(SkColor color) {
return new SolidBackground(color);
}
@@ -103,8 +103,8 @@ Background* Background::CreateStandardPanelBackground() {
}
//static
-Background* Background::CreateVerticalGradientBackground(
- const SkColor& color1, const SkColor& color2) {
+Background* Background::CreateVerticalGradientBackground(SkColor color1,
+ SkColor color2) {
Background* background = CreateBackgroundPainter(
true, Painter::CreateVerticalGradient(color1, color2));
background->SetNativeControlColor(