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_; |