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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2448403002: cc: Clean up transform tree (Closed)
Patch Set: PAC Created 4 years, 2 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/layer_tree_host_in_process.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 27c7cb429e6c00a2681847ba4d1c60bda05ce399..1342c662d37f22acaef8ba033e528c9913704b32 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1030,14 +1030,9 @@ bool LayerTreeImpl::UpdateDrawProperties(
// We are calculating transform between two render surfaces. So, we
// need to apply the surface contents scale at target and remove the
// surface contents scale at source.
- property_trees()->ComputeTransformToTarget(
+ property_trees()->GetToTarget(
it->render_surface()->TransformTreeIndex(),
occlusion_surface->EffectTreeIndex(), &draw_transform);
- const EffectNode* occlusion_effect_node =
- property_trees()->effect_tree.Node(
- occlusion_surface->EffectTreeIndex());
- draw_property_utils::PostConcatSurfaceContentsScale(
- occlusion_effect_node, &draw_transform);
const EffectNode* effect_node = property_trees()->effect_tree.Node(
it->render_surface()->EffectTreeIndex());
draw_property_utils::ConcatInverseSurfaceContentsScale(
« no previous file with comments | « cc/trees/layer_tree_host_in_process.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698