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

Unified Diff: cc/layers/picture_layer.h

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep RecordingSource, move three members to PictureLayer 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
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 447a936be981de3302a485e4d2ff0f2ec9a73db0..292fdd66da930267923f85c903cc26608a9999cf 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -13,7 +13,12 @@
namespace cc {
+namespace proto {
+class PictureLayerProperties;
+}
+
class ContentLayerClient;
+class DisplayItemList;
class RecordingSource;
class ResourceUpdateQueue;
@@ -58,6 +63,20 @@ class CC_EXPORT PictureLayer : public Layer {
bool is_mask() const { return is_mask_; }
+ // Encapsulates all data, callbacks or interfaces received from the embedder.
+ struct Inputs {
vmpstr 2016/07/25 20:29:14 types should be defined at the beginning of the ac
Menglin 2016/07/25 21:58:52 Done.
+ Inputs();
+ ~Inputs();
+
+ ContentLayerClient* client = nullptr;
+ bool nearest_neighbor = false;
+ gfx::Rect recorded_viewport;
+ scoped_refptr<DisplayItemList> display_list;
+ size_t painter_reported_memory_usage = 0;
+ };
+
+ Inputs inputs_;
+
private:
friend class TestSerializationPictureLayer;
@@ -72,14 +91,6 @@ class CC_EXPORT PictureLayer : public Layer {
int update_source_frame_number_;
bool is_mask_;
- // Encapsulates all data, callbacks or interfaces received from the embedder.
- struct Inputs {
- ContentLayerClient* client = nullptr;
- bool nearest_neighbor = false;
- };
-
- Inputs inputs_;
-
DISALLOW_COPY_AND_ASSIGN(PictureLayer);
};
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698