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

Side by Side Diff: cc/layers/picture_layer.h

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Fix test 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_PICTURE_LAYER_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_H_
6 #define CC_LAYERS_PICTURE_LAYER_H_ 6 #define CC_LAYERS_PICTURE_LAYER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/base/invalidation_region.h" 9 #include "cc/base/invalidation_region.h"
10 #include "cc/debug/devtools_instrumentation.h" 10 #include "cc/debug/devtools_instrumentation.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool nearest_neighbor = false; 61 bool nearest_neighbor = false;
62 gfx::Rect recorded_viewport; 62 gfx::Rect recorded_viewport;
63 scoped_refptr<DisplayItemList> display_list; 63 scoped_refptr<DisplayItemList> display_list;
64 size_t painter_reported_memory_usage = 0; 64 size_t painter_reported_memory_usage = 0;
65 }; 65 };
66 66
67 explicit PictureLayer(ContentLayerClient* client); 67 explicit PictureLayer(ContentLayerClient* client);
68 // Allow tests to inject a recording source. 68 // Allow tests to inject a recording source.
69 PictureLayer(ContentLayerClient* client, 69 PictureLayer(ContentLayerClient* client,
70 std::unique_ptr<RecordingSource> source); 70 std::unique_ptr<RecordingSource> source);
71 PictureLayer(int engine_layer_id, ContentLayerClient* client);
vmpstr 2016/10/07 23:50:05 This is... weird. Should this be "layer_id". I kin
Khushal 2016/10/08 00:41:33 Not needed anymore. Removed.
71 ~PictureLayer() override; 72 ~PictureLayer() override;
72 73
73 bool HasDrawableContent() const override; 74 bool HasDrawableContent() const override;
74 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override; 75 void SetTypeForProtoSerialization(proto::LayerNode* proto) const override;
75 void LayerSpecificPropertiesToProto(proto::LayerProperties* proto, 76 void LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
76 bool inputs_only) override; 77 bool inputs_only) override;
77 void FromLayerSpecificPropertiesProto( 78 void FromLayerSpecificPropertiesProto(
78 const proto::LayerProperties& proto) override; 79 const proto::LayerProperties& proto) override;
79 80
80 bool is_mask() const { return is_mask_; } 81 bool is_mask() const { return is_mask_; }
(...skipping 13 matching lines...) Expand all
94 95
95 int update_source_frame_number_; 96 int update_source_frame_number_;
96 bool is_mask_; 97 bool is_mask_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(PictureLayer); 99 DISALLOW_COPY_AND_ASSIGN(PictureLayer);
99 }; 100 };
100 101
101 } // namespace cc 102 } // namespace cc
102 103
103 #endif // CC_LAYERS_PICTURE_LAYER_H_ 104 #endif // CC_LAYERS_PICTURE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698