| 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 8b6436c3888d5573b9d89fc216210797c59f5bfd..537cd1f8f2ac7e9bf14483262377e489f6a2f5ec 100644
|
| --- a/cc/test/fake_display_list_recording_source.h
|
| +++ b/cc/test/fake_display_list_recording_source.h
|
| @@ -21,9 +21,7 @@ namespace cc {
|
| // display list.
|
| class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
|
| public:
|
| - FakeDisplayListRecordingSource()
|
| - : force_unsuitable_for_gpu_rasterization_(false),
|
| - playback_allowed_event_(nullptr) {}
|
| + FakeDisplayListRecordingSource();
|
| ~FakeDisplayListRecordingSource() override {}
|
|
|
| static scoped_ptr<FakeDisplayListRecordingSource> CreateRecordingSource(
|
| @@ -54,7 +52,10 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
|
| recorded_viewport_ = recorded_viewport;
|
| }
|
|
|
| - void SetLayerBounds(const gfx::Size& layer_bounds) { size_ = layer_bounds; }
|
| + void SetLayerBounds(const gfx::Size& layer_bounds) {
|
| + size_ = layer_bounds;
|
| + client_.set_bounds(layer_bounds);
|
| + }
|
|
|
| void SetClearCanvasWithDebugColor(bool clear) {
|
| clear_canvas_with_debug_color_ = clear;
|
| @@ -103,7 +104,10 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
|
| client_.set_reported_memory_usage(reported_memory_usage);
|
| }
|
|
|
| - void reset_draws() { client_ = FakeContentLayerClient(); }
|
| + void reset_draws() {
|
| + client_ = FakeContentLayerClient();
|
| + client_.set_bounds(size_);
|
| + }
|
|
|
| void SetUnsuitableForGpuRasterization() {
|
| force_unsuitable_for_gpu_rasterization_ = true;
|
|
|