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

Unified Diff: cc/trees/effect_node.cc

Issue 2188873002: cc: Add mask target size to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/property_tree_builder.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 b3f88a906da5685f606e0a1b006df011c79254bb..52109070d9048e3b0cd11dd2d1a4e66c453e6dad 100644
--- a/cc/trees/effect_node.cc
+++ b/cc/trees/effect_node.cc
@@ -50,6 +50,7 @@ bool EffectNode::operator==(const EffectNode& other) const {
background_filters == other.background_filters &&
blend_mode == other.blend_mode &&
surface_contents_scale == other.surface_contents_scale &&
+ unscaled_mask_target_size == other.unscaled_mask_target_size &&
hidden_by_backface_visibility == other.hidden_by_backface_visibility &&
double_sided == other.double_sided && is_drawn == other.is_drawn &&
subtree_hidden == other.subtree_hidden &&
@@ -98,6 +99,8 @@ void EffectNode::ToProtobuf(proto::TreeNode* proto) const {
data->set_replica_mask_layer_id(replica_mask_layer_id);
Vector2dFToProto(surface_contents_scale,
data->mutable_surface_contents_scale());
+ SizeToProto(unscaled_mask_target_size,
+ data->mutable_unscaled_mask_target_size());
}
void EffectNode::FromProtobuf(const proto::TreeNode& proto) {
@@ -111,6 +114,7 @@ void EffectNode::FromProtobuf(const proto::TreeNode& proto) {
opacity = data.opacity();
screen_space_opacity = data.screen_space_opacity();
blend_mode = SkXfermodeModeFromProto(data.blend_mode());
+ unscaled_mask_target_size = ProtoToSize(data.unscaled_mask_target_size());
has_render_surface = data.has_render_surface();
has_copy_request = data.has_copy_request();
hidden_by_backface_visibility = data.hidden_by_backface_visibility();
« no previous file with comments | « cc/trees/effect_node.h ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698