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

Unified Diff: cc/test/fake_display_list_recording_source.h

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_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 f8e3cc17c07927b12857cce84cd7452a824a1ffb..cb526adb896ca4a4420f4bba7903ed50c94ecbdd 100644
--- a/cc/test/fake_display_list_recording_source.h
+++ b/cc/test/fake_display_list_recording_source.h
@@ -48,6 +48,10 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
bool can_use_lcd) const override;
bool IsSuitableForGpuRasterization() const override;
+ void SetDisplayListUsesCachedPicture(bool use_cached_picture) {
+ client_.set_display_list_use_cached_picture(use_cached_picture);
+ }
+
void SetRecordedViewport(const gfx::Rect& recorded_viewport) {
recorded_viewport_ = recorded_viewport;
}
@@ -119,6 +123,11 @@ class FakeDisplayListRecordingSource : public DisplayListRecordingSource {
DisplayItemList* display_list() const { return 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
+ // result of |other|.
+ bool EqualsTo(const FakeDisplayListRecordingSource& other);
+
private:
FakeContentLayerClient client_;
SkPaint default_paint_;
« 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