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

Unified Diff: cc/test/fake_picture_layer.h

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test code refactor 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
Index: cc/test/fake_picture_layer.h
diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h
index 038e97543d9ad206f0750f812363b93bf481d5f8..744048f30eae79dd71b811f3e5ea3b527a050f63 100644
--- a/cc/test/fake_picture_layer.h
+++ b/cc/test/fake_picture_layer.h
@@ -42,6 +42,18 @@ class FakePictureLayer : public PictureLayer {
void PushPropertiesTo(LayerImpl* layer) override;
+ void SetRecordedViewport(const gfx::Rect& recorded_viewport) {
vmpstr 2016/07/27 18:18:37 can you make these hacker_case instead of CamelCas
Menglin 2016/07/27 19:17:48 you mean SetRecordedViewport and SetForceUnsuitabl
vmpstr 2016/07/28 18:19:58 I mean if the function is inlined and it's a fake
Menglin 2016/07/29 23:50:14 Done.
+ inputs_.recorded_viewport = recorded_viewport;
+ }
+
+ DisplayItemList* display_list() const { return inputs_.display_list.get(); }
+
+ void SetForceUnsuitableForGpuRasterization(bool flag) {
+ force_unsuitable_for_gpu_rasterization_ = flag;
+ }
+
+ bool IsSuitableForGpuRasterization() const override;
+
private:
explicit FakePictureLayer(ContentLayerClient* client);
FakePictureLayer(ContentLayerClient* client,
@@ -51,6 +63,8 @@ class FakePictureLayer : public PictureLayer {
int update_count_;
size_t push_properties_count_;
bool always_update_resources_;
+
+ bool force_unsuitable_for_gpu_rasterization_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698