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

Unified Diff: skia/ext/platform_canvas_unittest.cc

Issue 9416017: Optionally clear PlatformCanvas instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use sites now clear if necessary. 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
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas_unittest.cc
===================================================================
--- skia/ext/platform_canvas_unittest.cc (revision 123041)
+++ skia/ext/platform_canvas_unittest.cc (working copy)
@@ -194,6 +194,7 @@
TEST(PlatformCanvas, SkLayer) {
// Create the canvas initialized to opaque white.
PlatformCanvas canvas(16, 16, true);
+ canvas.drawARGB(0, 0, 0, 0);
alokp 2012/03/01 17:09:02 eraseARGB? and everywhere else.
Jeff Timanus 2012/03/01 18:35:49 I was confused by this too. SkCanvas (& PlatformC
canvas.drawColor(SK_ColorWHITE);
// Make a layer and fill it completely to make sure that the bounds are
@@ -209,6 +210,7 @@
TEST(PlatformCanvas, ClipRegion) {
// Initialize a white canvas
PlatformCanvas canvas(16, 16, true);
+ canvas.drawARGB(0, 0, 0, 0);
canvas.drawColor(SK_ColorWHITE);
EXPECT_TRUE(VerifyCanvasColor(canvas, SK_ColorWHITE));
@@ -234,6 +236,7 @@
TEST(PlatformCanvas, FillLayer) {
// Create the canvas initialized to opaque white.
PlatformCanvas canvas(16, 16, true);
+ canvas.drawARGB(0, 0, 0, 0);
// Make a layer and fill it completely to make sure that the bounds are
// correct.
@@ -291,6 +294,7 @@
TEST(PlatformCanvas, TranslateLayer) {
// Create the canvas initialized to opaque white.
PlatformCanvas canvas(16, 16, true);
+ canvas.drawARGB(0, 0, 0, 0);
// Make a layer and fill it completely to make sure that the bounds are
// correct.
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698