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

Unified Diff: cc/layers/picture_layer.cc

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/layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 25e6c3e679b0958eb7c59f853b7e49cb26557a01..408051bb218b571e4909ca3e424c3d2995cc0cb3 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -210,10 +210,9 @@ void PictureLayer::LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
bool inputs_only) {
Layer::LayerSpecificPropertiesToProto(proto, inputs_only);
DropRecordingSourceContentIfInvalid();
-
proto::PictureLayerProperties* picture = proto->mutable_picture();
- recording_source_->ToProtobuf(picture->mutable_recording_source());
+ picture->set_nearest_neighbor(picture_layer_inputs_.nearest_neighbor);
RectToProto(picture_layer_inputs_.recorded_viewport,
picture->mutable_recorded_viewport());
if (picture_layer_inputs_.display_list) {
@@ -229,12 +228,13 @@ void PictureLayer::LayerSpecificPropertiesToProto(proto::LayerProperties* proto,
}
}
+ if (inputs_only)
+ return;
+
+ recording_source_->ToProtobuf(picture->mutable_recording_source());
RegionToProto(last_updated_invalidation_, picture->mutable_invalidation());
picture->set_is_mask(is_mask_);
- picture->set_nearest_neighbor(picture_layer_inputs_.nearest_neighbor);
-
picture->set_update_source_frame_number(update_source_frame_number_);
-
last_updated_invalidation_.Clear();
}
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/solid_color_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698