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

Unified Diff: cc/trees/property_tree.cc

Issue 2163823003: cc : Use effect id to decide if surface contents scale should be applied (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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index f1dd7cad45cf797129406ddc3732832eb40774de..52133344432669966fdc994e0ebd0793a6a760ae 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -881,7 +881,7 @@ void EffectTree::TakeCopyRequestsAndTransformToSurface(
gfx::Transform transform;
property_trees()->transform_tree.ComputeTransform(source_id, destination_id,
&transform);
- if (destination_id != 0) {
+ if (effect_node->id != 1) {
transform.matrix().postScale(effect_node->surface_contents_scale.x(),
effect_node->surface_contents_scale.y(),
1.f);
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698