summaryrefslogtreecommitdiffstats
path: root/cc/resources/picture_pile_impl_unittest.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 23:09:54 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 23:09:54 +0000
commit3e1efd150939da55df0af64d05bb5403c77e1a83 (patch)
treefe98a4e3ea1154df5f86e92deb6335bf418d6709 /cc/resources/picture_pile_impl_unittest.cc
parent5e53d09b6a5296e6a15f4b49e6fc5d36b869d1f9 (diff)
downloadchromium_src-3e1efd150939da55df0af64d05bb5403c77e1a83.zip
chromium_src-3e1efd150939da55df0af64d05bb5403c77e1a83.tar.gz
chromium_src-3e1efd150939da55df0af64d05bb5403c77e1a83.tar.bz2
cc: Allow PicturePile tests to unset debug canvas clearing
This is a followup to https://codereview.chromium.org/51433003/. Without this, it's hard to write tests that verify raster behavior because the debug canvas clearing sets all the bitmap pixels to some arbitrary debug color before doing any rastering. R=brianderson@chromium.org BUG=none Review URL: https://codereview.chromium.org/47603018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/picture_pile_impl_unittest.cc')
-rw-r--r--cc/resources/picture_pile_impl_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/resources/picture_pile_impl_unittest.cc b/cc/resources/picture_pile_impl_unittest.cc
index 16a875e..e5691e3 100644
--- a/cc/resources/picture_pile_impl_unittest.cc
+++ b/cc/resources/picture_pile_impl_unittest.cc
@@ -635,8 +635,6 @@ TEST(PicturePileImplTest, PixelRefIteratorLazyRefsBaseNonLazy) {
}
}
-// Note: this test will always pass in debug because the canvas is cleared
-// to the NonPaintedFillColor first.
TEST(PicturePileImpl, RasterContentsOpaque) {
gfx::Size tile_size(1000, 1000);
gfx::Size layer_bounds(3, 5);
@@ -654,6 +652,7 @@ TEST(PicturePileImpl, RasterContentsOpaque) {
pile->SetMinContentsScale(contents_scale);
pile->set_background_color(SK_ColorBLACK);
pile->set_contents_opaque(true);
+ pile->set_clear_canvas_with_debug_color(false);
pile->RerecordPile();
gfx::Size content_bounds(
@@ -718,6 +717,7 @@ TEST(PicturePileImpl, RasterContentsTransparent) {
pile->set_background_color(SK_ColorTRANSPARENT);
pile->set_contents_opaque(false);
pile->SetMinContentsScale(contents_scale);
+ pile->set_clear_canvas_with_debug_color(false);
pile->RerecordPile();
gfx::Size content_bounds(