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

Unified Diff: skia/ext/vector_canvas_unittest.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: skia/ext/vector_canvas_unittest.cc
===================================================================
--- skia/ext/vector_canvas_unittest.cc (revision 123041)
+++ skia/ext/vector_canvas_unittest.cc (working copy)
@@ -392,7 +392,8 @@
bitmap_ = new Bitmap(*context_, size_, size_);
vcanvas_ = new VectorCanvas(VectorPlatformDeviceEmf::CreateDevice(
size_, size_, true, context_->context()));
- pcanvas_ = new PlatformCanvas(size_, size_, false);
+ pcanvas_ = new PlatformCanvas(size_, size_,
+ PlatformDevice::FLAGS_INITIALIZED);
// Clear white.
vcanvas_->drawARGB(255, 255, 255, 255, SkXfermode::kSrc_Mode);
@@ -459,7 +460,8 @@
bitmap_ = new Bitmap(*context_, size_, size_);
vcanvas_ = new VectorCanvas(VectorPlatformDeviceEmf::CreateDevice(
size_, size_, true, context_->context()));
- pcanvas_ = new PlatformCanvas(size_, size_, false);
+ pcanvas_ = new PlatformCanvas(size_, size_,
+ PlatformDevice::FLAGS_INITIALIZED);
// VectorCanvas default initialization is black.
// PlatformCanvas default initialization is almost white 0x01FFFEFD (invalid

Powered by Google App Engine
This is Rietveld 408576698