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

Unified Diff: cc/trees/effect_node.cc

Issue 2856043002: cc : Layers with singular transforms and copy request should be drawn (Closed)
Patch Set: comments Created 3 years, 8 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
Index: cc/trees/effect_node.cc
diff --git a/cc/trees/effect_node.cc b/cc/trees/effect_node.cc
index b650df0aace8ba21baeeed7dbc05a9a712c0d301..464422a2e66b6867a66e3fa34e16456f2a793998 100644
--- a/cc/trees/effect_node.cc
+++ b/cc/trees/effect_node.cc
@@ -31,7 +31,8 @@ EffectNode::EffectNode()
transform_id(0),
clip_id(0),
target_id(1),
- mask_layer_id(-1) {}
+ mask_layer_id(-1),
+ closest_ancestor_with_copy_request_id(-1) {}
EffectNode::EffectNode(const EffectNode& other) = default;
@@ -60,7 +61,9 @@ bool EffectNode::operator==(const EffectNode& other) const {
effect_changed == other.effect_changed &&
subtree_has_copy_request == other.subtree_has_copy_request &&
transform_id == other.transform_id && clip_id == other.clip_id &&
- target_id == other.target_id && mask_layer_id == other.mask_layer_id;
+ target_id == other.target_id && mask_layer_id == other.mask_layer_id &&
+ closest_ancestor_with_copy_request_id ==
+ other.closest_ancestor_with_copy_request_id;
}
void EffectNode::AsValueInto(base::trace_event::TracedValue* value) const {
@@ -82,6 +85,8 @@ void EffectNode::AsValueInto(base::trace_event::TracedValue* value) const {
value->SetInteger("clip_id", clip_id);
value->SetInteger("target_id", target_id);
value->SetInteger("mask_layer_id", mask_layer_id);
+ value->SetInteger("closest_ancestor_with_copy_request_id",
+ closest_ancestor_with_copy_request_id);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698