Index: cc/test/fake_display_list_recording_source.h |
diff --git a/cc/test/fake_display_list_recording_source.h b/cc/test/fake_display_list_recording_source.h |
index 544a02268beefcd8e8e950f4ed764849a7c9f098..679d5d6ec79e8f4193b01db14c7e6e144088d5c4 100644 |
--- a/cc/test/fake_display_list_recording_source.h |
+++ b/cc/test/fake_display_list_recording_source.h |
@@ -40,11 +40,9 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource { |
void Rerecord() { |
ContentLayerClient::PaintingControlSetting painting_control = |
ContentLayerClient::PAINTING_BEHAVIOR_NORMAL; |
- bool use_cached_picture = true; |
- display_list_ = |
- DisplayItemList::Create(recorded_viewport_, use_cached_picture); |
- client_.PaintContentsToDisplayList(display_list_.get(), recorded_viewport_, |
- painting_control); |
+ display_list_ = client_.PaintContentsToDisplayList(recorded_viewport_, |
+ painting_control); |
+ display_list_->set_layer_rect(recorded_viewport_); |
display_list_->CreateAndCacheSkPicture(); |
if (gather_pixel_refs_) |
display_list_->GatherPixelRefs(grid_cell_size_); |