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

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: Added comments 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
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..eb9eead725244237da9803cc5e454b3b00a50d6d 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 EqualsForTesting(const FakeDisplayListRecordingSource& other);
vmpstr 2015/12/10 01:12:19 For Fake* classes, you don't need ForTesting.. Jus
David Trainor- moved to gerrit 2015/12/10 17:10:10 Done.
+
private:
FakeContentLayerClient client_;
SkPaint default_paint_;

Powered by Google App Engine
This is Rietveld 408576698