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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2148383005: cc: Use sublayer scale from effect tree (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/sublayer_scale/surface_contents_scale 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/layer_tree_host_impl_unittest.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 e97ee7f74d9b7a6e812f816b8ca43401673eb786..ac7a82f33a744fd59fc493424c7b4320e2796528 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -970,13 +970,16 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
occlusion_surface->TransformTreeIndex(), &draw_transform);
// We don't have to apply sublayer scale when target is root.
if (occlusion_surface->TransformTreeIndex() != 0) {
- draw_property_utils::PostConcatSublayerScale(
- occlusion_surface->EffectTreeIndex(),
- property_trees()->effect_tree, &draw_transform);
+ const EffectNode* occlusion_effect_node =
+ property_trees()->effect_tree.Node(
+ occlusion_surface->EffectTreeIndex());
+ draw_property_utils::PostConcatSublayerScale(occlusion_effect_node,
Ian Vollick 2016/07/16 01:07:51 If you're going to do a rename, should probably re
jaydasika 2016/07/16 02:23:15 Done.
+ &draw_transform);
}
- draw_property_utils::ConcatInverseSublayerScale(
- it->render_surface()->EffectTreeIndex(),
- property_trees()->effect_tree, &draw_transform);
+ const EffectNode* effect_node = property_trees()->effect_tree.Node(
+ it->render_surface()->EffectTreeIndex());
+ draw_property_utils::ConcatInverseSublayerScale(effect_node,
+ &draw_transform);
}
Occlusion occlusion =
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698