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

Unified Diff: cc/test/fake_picture_pile_impl.h

Issue 14230007: cc: Do GatherPixelRefs from skia at record time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 7 years, 8 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: cc/test/fake_picture_pile_impl.h
diff --git a/cc/test/fake_picture_pile_impl.h b/cc/test/fake_picture_pile_impl.h
index f3bde7bcc4d649120d1e86ff87f47ff3bc509b8d..333effb25d6c84b3a39c03f8a50beaa70df4934a 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(const 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);
}

Powered by Google App Engine
This is Rietveld 408576698