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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 2172003002: cc: Compute transform to target using effect id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix_compile_error 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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index b0b3ae30fa1360a35e94e1742e35046dd8829d79..290465876ed25af18fb6329567fc6ed86a295920 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1001,9 +1001,9 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
// 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()->transform_tree.ComputeTransform(
+ property_trees()->ComputeTransformToTarget(
it->render_surface()->TransformTreeIndex(),
- occlusion_surface->TransformTreeIndex(), &draw_transform);
+ occlusion_surface->EffectTreeIndex(), &draw_transform);
// We don't have to apply surface contents scale when target is root.
if (occlusion_surface->TransformTreeIndex() != 0) {
const EffectNode* occlusion_effect_node =

Powered by Google App Engine
This is Rietveld 408576698