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

Unified Diff: ui/gfx/native_theme_win.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: ui/gfx/native_theme_win.cc
===================================================================
--- ui/gfx/native_theme_win.cc (revision 123041)
+++ ui/gfx/native_theme_win.cc (working copy)
@@ -430,7 +430,8 @@
// Create an offscreen canvas that is backed by an HDC.
scoped_ptr<SkCanvas> offscreen_canvas(
- skia::CreateBitmapCanvas(rect.width(), rect.height(), false));
+ skia::CreateBitmapCanvas(rect.width(), rect.height(),
+ skia::PlatformDevice::FLAGS_INITIALIZED));
Jeff Timanus 2012/02/23 22:14:10 This file is windows specific, so the initializati
DCHECK(offscreen_canvas.get());
DCHECK(skia::SupportsPlatformPaint(offscreen_canvas.get()));

Powered by Google App Engine
This is Rietveld 408576698