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

Unified Diff: cc/test/fake_display_list_recording_source.cc

Issue 1512823002: Serialize DisplayListRecordingSource to protos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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_display_list_recording_source.h ('k') | cc/test/skia_common.h » ('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.cc
diff --git a/cc/test/fake_display_list_recording_source.cc b/cc/test/fake_display_list_recording_source.cc
index c48859efd455c5756c5664e3cf7d4ac19408cee4..fe0a1270e9c21a1622a41a898f36510857f514bf 100644
--- a/cc/test/fake_display_list_recording_source.cc
+++ b/cc/test/fake_display_list_recording_source.cc
@@ -5,6 +5,7 @@
#include "cc/test/fake_display_list_recording_source.h"
#include "cc/test/fake_display_list_raster_source.h"
+#include "cc/test/skia_common.h"
namespace cc {
@@ -24,4 +25,22 @@ FakeDisplayListRecordingSource::CreateRasterSource(bool can_use_lcd) const {
this, can_use_lcd, playback_allowed_event_);
}
+bool FakeDisplayListRecordingSource::EqualsTo(
+ const FakeDisplayListRecordingSource& other) {
+ return recorded_viewport_ == other.recorded_viewport_ &&
+ size_ == other.size_ &&
+ slow_down_raster_scale_factor_for_debug_ ==
+ other.slow_down_raster_scale_factor_for_debug_ &&
+ generate_discardable_images_metadata_ ==
+ other.generate_discardable_images_metadata_ &&
+ requires_clear_ == other.requires_clear_ &&
+ is_solid_color_ == other.is_solid_color_ &&
+ clear_canvas_with_debug_color_ ==
+ other.clear_canvas_with_debug_color_ &&
+ solid_color_ == other.solid_color_ &&
+ background_color_ == other.background_color_ &&
+ AreDisplayListDrawingResultsSame(recorded_viewport_, display_list_,
+ other.display_list_);
+}
+
} // namespace cc
« no previous file with comments | « cc/test/fake_display_list_recording_source.h ('k') | cc/test/skia_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698