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

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: 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..dc922f4bf7fe5d9d46e8ecf650d536793660bbe4 100644
--- a/cc/test/fake_recording_source.h
+++ b/cc/test/fake_recording_source.h
@@ -57,7 +57,7 @@ class FakeRecordingSource : public RecordingSource {
}
void SetRecordedViewport(const gfx::Rect& recorded_viewport) {
- recorded_viewport_ = recorded_viewport;
+ inputs_.recorded_viewport = recorded_viewport;
}
void SetLayerBounds(const gfx::Size& layer_bounds) {
@@ -70,7 +70,7 @@ class FakeRecordingSource : public RecordingSource {
}
void Rerecord() {
- SetNeedsDisplayRect(recorded_viewport_);
+ SetNeedsDisplayRect(inputs_.recorded_viewport);
Region invalidation;
UpdateAndExpandInvalidation(&client_, &invalidation, size_, 0,
RECORD_NORMALLY);
@@ -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 inputs_.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