Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8362)

Unified Diff: chrome/browser/browser_theme_provider.cc

Issue 198003: Make theme setup a little faster by not blurring images for tab backgrounds.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_theme_provider.cc
===================================================================
--- chrome/browser/browser_theme_provider.cc (revision 25059)
+++ chrome/browser/browser_theme_provider.cc (working copy)
@@ -1000,11 +1000,7 @@
}
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 : 2;
- SkBitmap blurred =
- skia::ImageOperations::CreateBlurredBitmap(*frame, blur_amount);
- SkBitmap* bg_tab = new SkBitmap(TintBitmap(blurred,
+ SkBitmap* bg_tab = new SkBitmap(TintBitmap(*(it->second),
TINT_BACKGROUND_TAB));
// If they've provided a custom image, overlay it.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698