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

Unified Diff: cc/trees/draw_property_utils.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
« no previous file with comments | « no previous file | cc/trees/effect_node.h » ('j') | cc/trees/property_tree_builder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 94b2e5d15ad05fbb6f690b61ee2cee9b343f4f95..893f6baf83a4aaa51f8eaabeb82863cc687bc666 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -662,9 +662,10 @@ static void SetSurfaceDrawTransform(const PropertyTrees* property_trees,
static gfx::Rect LayerVisibleRect(PropertyTrees* property_trees,
LayerImpl* layer) {
+ const EffectNode* effect_node =
+ property_trees->effect_tree.Node(layer->effect_tree_index());
int effect_ancestor_with_copy_request =
- property_trees->effect_tree.ClosestAncestorWithCopyRequest(
- layer->effect_tree_index());
+ effect_node->closest_ancestor_with_copy_request_id;
bool non_root_copy_request =
effect_ancestor_with_copy_request > EffectTree::kContentsRootNodeId;
gfx::Rect layer_content_rect = gfx::Rect(layer->bounds());
« no previous file with comments | « no previous file | cc/trees/effect_node.h » ('j') | cc/trees/property_tree_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698