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

Unified Diff: ui/gfx/canvas_skia.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/canvas_skia.cc
===================================================================
--- ui/gfx/canvas_skia.cc (revision 123041)
+++ ui/gfx/canvas_skia.cc (working copy)
@@ -51,13 +51,13 @@
CanvasSkia::CanvasSkia(const gfx::Size& size, bool is_opaque)
: owned_canvas_(new skia::PlatformCanvas(size.width(), size.height(),
- is_opaque)),
+ skia::PlatformDevice::GetDefaultFlags(is_opaque))),
Jeff Timanus 2012/02/23 22:14:10 These clears would require a #if WIN/LINUX block t
canvas_(owned_canvas_.get()) {
}
CanvasSkia::CanvasSkia(const SkBitmap& bitmap, bool is_opaque)
: owned_canvas_(new skia::PlatformCanvas(bitmap.width(), bitmap.height(),
- is_opaque)),
+ skia::PlatformDevice::GetDefaultFlags(is_opaque))),
canvas_(owned_canvas_.get()) {
DrawBitmapInt(bitmap, 0, 0);
}

Powered by Google App Engine
This is Rietveld 408576698