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

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: Created 8 years, 9 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 126450)
+++ ui/gfx/canvas_skia.cc (working copy)
@@ -54,6 +54,9 @@
: owned_canvas_(new skia::PlatformCanvas(size.width(), size.height(),
is_opaque)),
canvas_(owned_canvas_.get()) {
+#if defined(OS_WIN) || defined(OS_MACOSX)
+ owned_canvas_->clear(SkColorSetARGB(0, 0, 0, 0));
vandebo (ex-Chrome) 2012/03/14 23:38:29 Why is this clear needed - this doesn't appear to
Jeff Timanus 2012/03/15 19:01:28 I put a clear here to preserve existing behaviour.
+#endif
}
CanvasSkia::CanvasSkia(const SkBitmap& bitmap, bool is_opaque)

Powered by Google App Engine
This is Rietveld 408576698