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

Unified Diff: cc/test/fake_recording_source.cc

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
« cc/playback/recording_source.h ('K') | « cc/test/fake_recording_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_recording_source.cc
diff --git a/cc/test/fake_recording_source.cc b/cc/test/fake_recording_source.cc
index 01e4fd01bb37dc1acc595503a1154d522efd1bfd..3daaf9af8877136c7693ea0b2607d2a7e0ae66ed 100644
--- a/cc/test/fake_recording_source.cc
+++ b/cc/test/fake_recording_source.cc
@@ -28,13 +28,15 @@ scoped_refptr<RasterSource> FakeRecordingSource::CreateRasterSource(
bool FakeRecordingSource::EqualsTo(const FakeRecordingSource& other) {
// The DisplayItemLists are equal if they are both null or they are both not
// null and render to the same thing.
- bool display_lists_equal = !display_list_ && !other.display_list_;
- if (display_list_ && other.display_list_) {
+ bool display_lists_equal =
+ !inputs_.display_list && !other.inputs_.display_list;
+ if (inputs_.display_list && other.inputs_.display_list) {
display_lists_equal = AreDisplayListDrawingResultsSame(
- recorded_viewport_, display_list_.get(), other.display_list_.get());
+ inputs_.recorded_viewport, inputs_.display_list.get(),
+ other.inputs_.display_list.get());
}
- return recorded_viewport_ == other.recorded_viewport_ &&
+ return inputs_.recorded_viewport == other.inputs_.recorded_viewport &&
size_ == other.size_ &&
slow_down_raster_scale_factor_for_debug_ ==
other.slow_down_raster_scale_factor_for_debug_ &&
« cc/playback/recording_source.h ('K') | « cc/test/fake_recording_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698