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

Unified Diff: cc/test/fake_display_list_recording_source.h

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/fake_display_list_recording_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f8e3cc17c07927b12857cce84cd7452a824a1ffb 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;
@@ -114,9 +118,6 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
}
DisplayItemList* display_list() const { return display_list_.get(); }
- void set_pixel_record_distance(int distance) {
- pixel_record_distance_ = distance;
- }
private:
FakeContentLayerClient client_;
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/fake_display_list_recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698