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

Unified Diff: cc/proto/layer.proto

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Addressed comments 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/layers/solid_color_scrollbar_layer.cc ('k') | cc/test/remote_client_layer_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proto/layer.proto
diff --git a/cc/proto/layer.proto b/cc/proto/layer.proto
index b4b6035575bbdb470851985c456787d75e5fcd53..ede3d2a6acb3ab389149ac5578bece7ba1543dbf 100644
--- a/cc/proto/layer.proto
+++ b/cc/proto/layer.proto
@@ -44,6 +44,9 @@ message LayerNode {
// A List of all the children of the current LayerNode.
repeated LayerNode children = 4;
optional LayerNode mask_layer = 5;
+
+ // Set for SolidColorScrollbarLayers.
+ optional SolidColorScrollbarLayerProperties solid_scrollbar = 6;
}
// A container for a list of dirty layers.
@@ -65,7 +68,6 @@ message LayerProperties {
// TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See
// crbug.com/570371.
optional PictureLayerProperties picture = 6;
- optional SolidColorScrollbarLayerProperties solid_scrollbar = 7;
}
// NEXT ID: 59
@@ -146,16 +148,19 @@ message BaseLayerProperties {
}
message PictureLayerProperties {
+ // The following fields mirror the data stored in
+ // PictureLayer::PictureLayerInputs.------------------------
+ optional bool nearest_neighbor = 5;
+ optional Rect recorded_viewport = 7;
+ optional DisplayItemList display_list = 8;
+ // --------------------------------------------------------
+
+ // TODO(khushalsagar): Remove these when crbug.com/648442
optional RecordingSource recording_source = 1;
optional Region invalidation = 2;
optional Rect last_updated_visible_layer_rect = 3;
optional bool is_mask = 4;
- optional bool nearest_neighbor = 5;
-
optional int64 update_source_frame_number = 6;
-
- optional Rect recorded_viewport = 7;
- optional DisplayItemList display_list = 8;
}
message SolidColorScrollbarLayerProperties {
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.cc ('k') | cc/test/remote_client_layer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698