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

Unified Diff: cc/test/fake_content_layer_client.cc

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.cc
diff --git a/cc/test/fake_content_layer_client.cc b/cc/test/fake_content_layer_client.cc
index 6370a2ef328d7048a786f061bc97e8171b0ddb95..3c8bc1791c57e6318bf5e400107b65510c255232 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -28,10 +28,12 @@ FakeContentLayerClient::ImageData::ImageData(const SkImage* img,
FakeContentLayerClient::ImageData::~ImageData() {}
FakeContentLayerClient::FakeContentLayerClient()
- : fill_with_nonsolid_color_(false),
+ : display_list_use_cached_picture_(true),
+ fill_with_nonsolid_color_(false),
last_canvas_(nullptr),
last_painting_control_(PAINTING_BEHAVIOR_NORMAL),
- reported_memory_usage_(0) {}
+ reported_memory_usage_(0),
+ bounds_set_(false) {}
FakeContentLayerClient::~FakeContentLayerClient() {
}
@@ -47,7 +49,7 @@ FakeContentLayerClient::PaintContentsToDisplayList(
// Cached picture is used because unit tests expect to be able to
// use GatherPixelRefs.
DisplayItemListSettings settings;
- settings.use_cached_picture = true;
+ settings.use_cached_picture = display_list_use_cached_picture_;
scoped_refptr<DisplayItemList> display_list =
DisplayItemList::Create(PaintableRegion(), settings);
SkPictureRecorder recorder;

Powered by Google App Engine
This is Rietveld 408576698