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

Unified Diff: skia/ext/vector_platform_device_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: skia/ext/vector_platform_device_skia.cc
===================================================================
--- skia/ext/vector_platform_device_skia.cc (revision 126450)
+++ skia/ext/vector_platform_device_skia.cc (working copy)
@@ -53,7 +53,10 @@
#endif
raster_surface_->unref(); // SkRefPtr and create both took a reference.
+#if defined(OS_WIN) || defined(OS_MACOSX)
vandebo (ex-Chrome) 2012/03/14 23:38:29 I comment wouldn't hurt here.
Jeff Timanus 2012/03/15 19:01:28 Done.
SkCanvas canvas(raster_surface_.get());
vandebo (ex-Chrome) 2012/03/14 23:38:29 nit: Why is/was this here?
Jeff Timanus 2012/03/15 19:01:28 I noticed this, and was also confused. I left it
vandebo (ex-Chrome) 2012/03/15 20:40:57 Ahh - in that revision, the device is cleared to b
+ canvas.clear(SkColorSetARGB(0, 0, 0, 0));
+#endif
return raster_surface_->BeginPlatformPaint();
}
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | ui/gfx/canvas_skia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698