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

Unified Diff: cc/test/fake_picture_layer.h

Issue 2451913002: Add serialization/deserialization for FakePictureLayer for testing. (Closed)
Patch Set: Some cleaning on FakePictureLayer. Created 4 years, 2 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
« no previous file with comments | « cc/proto/layer.proto ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer.h
diff --git a/cc/test/fake_picture_layer.h b/cc/test/fake_picture_layer.h
index f6ab90b1ba637281362f100552c871d313faa967..a7a3feba5a98fb0c19eeeade341b647a05ab79a3 100644
--- a/cc/test/fake_picture_layer.h
+++ b/cc/test/fake_picture_layer.h
@@ -31,25 +31,12 @@ class FakePictureLayer : public PictureLayer {
int update_count() const { return update_count_; }
void reset_update_count() { update_count_ = 0; }
- size_t push_properties_count() const { return push_properties_count_; }
- void reset_push_properties_count() { push_properties_count_ = 0; }
-
void set_always_update_resources(bool always_update_resources) {
always_update_resources_ = always_update_resources;
}
bool Update() override;
Khushal 2016/10/26 01:08:02 Would be great if you could put the Layer override
xingliu 2016/10/26 17:56:40 Done.
- void PushPropertiesTo(LayerImpl* layer) override;
-
- void set_recorded_viewport(const gfx::Rect& recorded_viewport) {
- picture_layer_inputs_.recorded_viewport = recorded_viewport;
- }
-
- DisplayItemList* display_list() const {
Khushal 2016/10/26 01:08:02 Thanks for the cleanup. :)
- return picture_layer_inputs_.display_list.get();
- }
-
void set_force_unsuitable_for_gpu_rasterization(bool flag) {
force_unsuitable_for_gpu_rasterization_ = flag;
}
@@ -62,8 +49,9 @@ class FakePictureLayer : public PictureLayer {
std::unique_ptr<RecordingSource> source);
~FakePictureLayer() override;
+ void SetTypeForProtoSerialization(proto::LayerNode* proto) const override;
+
int update_count_;
- size_t push_properties_count_;
bool always_update_resources_;
bool force_unsuitable_for_gpu_rasterization_;
« no previous file with comments | « cc/proto/layer.proto ('k') | cc/test/fake_picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698