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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2632313002: cc: Compute RenderSurfaceImpl's TransformTreeIndex using its effect node (Closed)
Patch Set: Created 3 years, 11 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/render_surface_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
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 9251beff1996c91d2f706f0f0af62bc3ecaffe9a..4bcac30527fcf7ef9845349a1ed5d40e27116812 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -1278,7 +1278,7 @@ static void SetSurfaceDrawTransform(const PropertyTrees* property_trees,
const EffectNode* effect_node =
effect_tree.Node(render_surface->EffectTreeIndex());
// The draw transform of root render surface is identity tranform.
- if (transform_node->id == 1) {
+ if (transform_node->id == TransformTree::kRootNodeId) {
render_surface->SetDrawTransform(gfx::Transform());
return;
}
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698