summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_pile_impl.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-25 19:11:57 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-25 19:11:57 +0000
commit991db24d1532eed736d55eb1d3a1b08783d363ca (patch)
tree663b2779fa61cb9750cd30f488611ea4661f6e05 /cc/test/fake_picture_pile_impl.h
parent92ed0e1a885fb97c73002ba1ae847cd4966a980d (diff)
downloadchromium_src-991db24d1532eed736d55eb1d3a1b08783d363ca.zip
chromium_src-991db24d1532eed736d55eb1d3a1b08783d363ca.tar.gz
chromium_src-991db24d1532eed736d55eb1d3a1b08783d363ca.tar.bz2
cc: Do GatherPixelRefs from skia at record time
This change gather lazy pixel refs from skia at record time and stores them in a 512x512 grid. When GatherPixelRefs is invoked, the refs are looked up in this grid (cells that intersect our required rect contribute their pixel refs to the final result) BUG=231977 Review URL: https://chromiumcodereview.appspot.com/14230007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196451 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_pile_impl.h')
-rw-r--r--cc/test/fake_picture_pile_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/test/fake_picture_pile_impl.h b/cc/test/fake_picture_pile_impl.h
index d6479d6..057376d 100644
--- a/cc/test/fake_picture_pile_impl.h
+++ b/cc/test/fake_picture_pile_impl.h
@@ -27,10 +27,19 @@ class FakePicturePileImpl : public PicturePileImpl {
void RemoveRecordingAt(int x, int y);
+ void AddPictureToRecording(
+ int x,
+ int y,
+ scoped_refptr<Picture> picture);
+
void add_draw_rect(gfx::Rect rect) {
client_.add_draw_rect(rect, default_paint_);
}
+ void add_draw_bitmap(const SkBitmap& bitmap, gfx::Point point) {
+ client_.add_draw_bitmap(bitmap, point);
+ }
+
void add_draw_rect_with_paint(gfx::Rect rect, const SkPaint& paint) {
client_.add_draw_rect(rect, paint);
}