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

Unified Diff: cc/trees/effect_node.cc

Issue 2148383005: cc: Use sublayer scale from effect tree (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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 | « cc/trees/effect_node.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/effect_node.cc
diff --git a/cc/trees/effect_node.cc b/cc/trees/effect_node.cc
index c26ddd93e7172700a8ebdb754bcd7b5d50430aa8..cfe9cc3b431eea7c97a9ddc376f693395c3e45ff 100644
--- a/cc/trees/effect_node.cc
+++ b/cc/trees/effect_node.cc
@@ -43,7 +43,7 @@ bool EffectNode::operator==(const EffectNode& other) const {
has_render_surface == other.has_render_surface &&
has_copy_request == other.has_copy_request &&
background_filters == other.background_filters &&
- sublayer_scale == other.sublayer_scale &&
+ surface_contents_scale == other.surface_contents_scale &&
hidden_by_backface_visibility == other.hidden_by_backface_visibility &&
double_sided == other.double_sided && is_drawn == other.is_drawn &&
subtree_hidden == other.subtree_hidden &&
@@ -84,7 +84,8 @@ void EffectNode::ToProtobuf(proto::TreeNode* proto) const {
data->set_mask_layer_id(mask_layer_id);
data->set_replica_layer_id(replica_layer_id);
data->set_replica_mask_layer_id(replica_mask_layer_id);
- Vector2dFToProto(sublayer_scale, data->mutable_sublayer_scale());
+ Vector2dFToProto(surface_contents_scale,
+ data->mutable_surface_contents_scale());
}
void EffectNode::FromProtobuf(const proto::TreeNode& proto) {
@@ -113,7 +114,7 @@ void EffectNode::FromProtobuf(const proto::TreeNode& proto) {
mask_layer_id = data.mask_layer_id();
replica_layer_id = data.replica_layer_id();
replica_mask_layer_id = data.replica_mask_layer_id();
- sublayer_scale = ProtoToVector2dF(data.sublayer_scale());
+ surface_contents_scale = ProtoToVector2dF(data.surface_contents_scale());
}
void EffectNode::AsValueInto(base::trace_event::TracedValue* value) const {
« no previous file with comments | « cc/trees/effect_node.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698