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

Unified Diff: chrome/renderer/safe_browsing/phishing_thumbnailer.cc

Issue 9416017: Optionally clear PlatformCanvas instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address style issues. Created 8 years, 10 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
Index: chrome/renderer/safe_browsing/phishing_thumbnailer.cc
===================================================================
--- chrome/renderer/safe_browsing/phishing_thumbnailer.cc (revision 123041)
+++ chrome/renderer/safe_browsing/phishing_thumbnailer.cc (working copy)
@@ -33,7 +33,8 @@
WebView* view = render_view->GetWebView();
base::TimeTicks beginning_time = base::TimeTicks::Now();
skia::PlatformCanvas canvas;
- if (!canvas.initialize(view_size.width(), view_size.height(), true)) {
+ if (!canvas.initialize(view_size.width(), view_size.height(),
+ skia::PlatformDevice::FLAGS_OPAQUE)) {
return SkBitmap();
}

Powered by Google App Engine
This is Rietveld 408576698