summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 00:15:21 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 00:15:21 +0000
commit2706bb2a2fd0ac7453fd028a42f10d37e3d833d4 (patch)
treebb3309e0e4f5fccd54c1dbf4a5370b1ae97bfa6c /chrome/browser/ui/gtk
parent32538d988e57c52b951d95748a0a1fe53ed8c7b9 (diff)
downloadchromium_src-2706bb2a2fd0ac7453fd028a42f10d37e3d833d4.zip
chromium_src-2706bb2a2fd0ac7453fd028a42f10d37e3d833d4.tar.gz
chromium_src-2706bb2a2fd0ac7453fd028a42f10d37e3d833d4.tar.bz2
Remove redundant allocation and SkBitmap copy.
Review URL: http://codereview.chromium.org/7739001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk')
-rw-r--r--chrome/browser/ui/gtk/gtk_theme_service.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/ui/gtk/gtk_theme_service.cc b/chrome/browser/ui/gtk/gtk_theme_service.cc
index a09d79a..a3d58da 100644
--- a/chrome/browser/ui/gtk/gtk_theme_service.cc
+++ b/chrome/browser/ui/gtk/gtk_theme_service.cc
@@ -1080,9 +1080,8 @@ SkBitmap* GtkThemeService::GenerateTintedIcon(
int base_id,
const color_utils::HSL& tint) const {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- scoped_ptr<SkBitmap> button(new SkBitmap(*rb.GetBitmapNamed(base_id)));
return new SkBitmap(SkBitmapOperations::CreateHSLShiftedBitmap(
- *button, tint));
+ *rb.GetBitmapNamed(base_id), tint));
}
void GtkThemeService::GetNormalButtonTintHSL(