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

Unified Diff: cc/test/fake_content_layer_client.h

Issue 1512823002: Serialize DisplayListRecordingSource to protos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments Created 5 years 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_content_layer_client.h
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h
index 00d562d2c140e3beb5e140ff40667a27fe3178e9..c63f5d2bc7045a888705402647df3e5584e68321 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -44,6 +44,10 @@ class FakeContentLayerClient : public ContentLayerClient {
bool FillsBoundsCompletely() const override;
size_t GetApproximateUnsharedMemoryUsage() const override;
+ void set_display_list_use_cached_picture(bool use_cached_picture) {
+ display_list_use_cached_picture_ = use_cached_picture;
+ }
+
void set_fill_with_nonsolid_color(bool nonsolid) {
fill_with_nonsolid_color_ = nonsolid;
}
@@ -89,6 +93,7 @@ class FakeContentLayerClient : public ContentLayerClient {
typedef std::vector<std::pair<gfx::RectF, SkPaint>> RectPaintVector;
typedef std::vector<ImageData> ImageVector;
+ bool display_list_use_cached_picture_;
bool fill_with_nonsolid_color_;
RectPaintVector draw_rects_;
ImageVector draw_images_;

Powered by Google App Engine
This is Rietveld 408576698