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

Unified Diff: cc/test/fake_recording_source.h

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove recoding_source_ from PictureLayer, and move all its internal state to PictureLayer Created 4 years, 5 months 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_recording_source.h
diff --git a/cc/test/fake_recording_source.h b/cc/test/fake_recording_source.h
index 20f9538dad5dc5b85c824373aa77a401d940ac6e..a8f4c00289eb6852820fd99a83cc22c25b0a02b4 100644
--- a/cc/test/fake_recording_source.h
+++ b/cc/test/fake_recording_source.h
@@ -57,22 +57,22 @@ class FakeRecordingSource : public RecordingSource {
}
void SetRecordedViewport(const gfx::Rect& recorded_viewport) {
- recorded_viewport_ = recorded_viewport;
+ clc_data_.recorded_viewport = recorded_viewport;
Menglin 2016/07/19 22:56:37 Oh I think you don't have to look into the change
}
void SetLayerBounds(const gfx::Size& layer_bounds) {
- size_ = layer_bounds;
+ pl_data_.size = layer_bounds;
client_.set_bounds(layer_bounds);
}
void SetClearCanvasWithDebugColor(bool clear) {
- clear_canvas_with_debug_color_ = clear;
+ pl_data_.clear_canvas_with_debug_color = clear;
}
void Rerecord() {
- SetNeedsDisplayRect(recorded_viewport_);
+ SetNeedsDisplayRect(clc_data_.recorded_viewport);
Region invalidation;
- UpdateAndExpandInvalidation(&client_, &invalidation, size_, 0,
+ UpdateAndExpandInvalidation(&client_, &invalidation, pl_data_.size,
RECORD_NORMALLY);
}
@@ -116,7 +116,7 @@ class FakeRecordingSource : public RecordingSource {
void reset_draws() {
client_ = FakeContentLayerClient();
- client_.set_bounds(size_);
+ client_.set_bounds(pl_data_.size);
}
void SetUnsuitableForGpuRasterization() {
@@ -127,7 +127,7 @@ class FakeRecordingSource : public RecordingSource {
playback_allowed_event_ = event;
}
- DisplayItemList* display_list() const { return display_list_.get(); }
+ DisplayItemList* display_list() const { return clc_data_.display_list.get(); }
// Checks that the basic properties of the |other| match |this|. For the
// DisplayItemList, it checks that the painted result matches the painted

Powered by Google App Engine
This is Rietveld 408576698