diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 02:31:59 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-30 02:31:59 +0000 |
commit | 61332ec78fa4a33f5af66c6baac63db0e3f27708 (patch) | |
tree | afcf66c8472c1c13429624abe7d4f9f2ec7f9de8 /cc/test/fake_picture_pile_impl.cc | |
parent | c97ac4f2fd093c1491d0295de2a0c614ae388000 (diff) | |
download | chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.zip chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.tar.gz chromium_src-61332ec78fa4a33f5af66c6baac63db0e3f27708.tar.bz2 |
cc: Add pixel tests for PictureDrawQuad
Add tests for simple pictures, clipped pictures, transformed pictures,
scaled content rects, content subrects, and content scales.
As the software renderer doesn't support picture draw quad yet, this is
only turned on for the gl renderer.
R=danakj@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/14001009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_pile_impl.cc')
-rw-r--r-- | cc/test/fake_picture_pile_impl.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc index 9c58313..15c1d17 100644 --- a/cc/test/fake_picture_pile_impl.cc +++ b/cc/test/fake_picture_pile_impl.cc @@ -80,4 +80,13 @@ void FakePicturePileImpl::RemoveRecordingAt(int x, int y) { UpdateRecordedRegion(); } +void FakePicturePileImpl::RerecordPile() { + for (int y = 0; y < num_tiles_y(); ++y) { + for (int x = 0; x < num_tiles_x(); ++x) { + RemoveRecordingAt(x, y); + AddRecordingAt(x, y); + } + } +} + } // namespace cc |