summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 17:13:01 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 17:13:01 +0000
commit6d78af53b8ddf56e50d9d8ffe81dbabfa8fc7f0e (patch)
tree1bd6d1bfe57d4e0b2fede9c969478ab138fb981a /chrome/browser/browser_theme_provider.cc
parent6603fe9ca7936b6e5622e22c095299e8a3bc00e1 (diff)
downloadchromium_src-6d78af53b8ddf56e50d9d8ffe81dbabfa8fc7f0e.zip
chromium_src-6d78af53b8ddf56e50d9d8ffe81dbabfa8fc7f0e.tar.gz
chromium_src-6d78af53b8ddf56e50d9d8ffe81dbabfa8fc7f0e.tar.bz2
Quick 'low-risk-for-the-next-release' fix to increase theme install/load perf (should be a 2-4x speedup). Bug should remain open until a better approach (background threads, perhaps) is used.
BUG=17696 TEST=none Review URL: http://codereview.chromium.org/159903 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.cc')
-rw-r--r--chrome/browser/browser_theme_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc
index ac15107..b6af887 100644
--- a/chrome/browser/browser_theme_provider.cc
+++ b/chrome/browser/browser_theme_provider.cc
@@ -819,7 +819,7 @@ SkBitmap* BrowserThemeProvider::GenerateBitmap(int id) {
std::map<int, SkBitmap*>::iterator it = image_cache_.find(base_id);
if (it != image_cache_.end()) {
SkBitmap* frame = it->second;
- int blur_amount = (HasCustomImage(id)) ? 1 : 5;
+ int blur_amount = (HasCustomImage(id)) ? 1 : 2;
SkBitmap blurred =
skia::ImageOperations::CreateBlurredBitmap(*frame, blur_amount);
SkBitmap* bg_tab = new SkBitmap(TintBitmap(blurred, TINT_BACKGROUND_TAB));