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

Unified Diff: cc/trees/layer_tree_impl.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/draw_property_utils.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/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 290465876ed25af18fb6329567fc6ed86a295920..7c4adcb879f5bd13328f7b82960ce302d76303c6 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1005,7 +1005,7 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
it->render_surface()->TransformTreeIndex(),
occlusion_surface->EffectTreeIndex(), &draw_transform);
// We don't have to apply surface contents scale when target is root.
- if (occlusion_surface->TransformTreeIndex() != 0) {
+ if (occlusion_surface->EffectTreeIndex() != 1) {
const EffectNode* occlusion_effect_node =
property_trees()->effect_tree.Node(
occlusion_surface->EffectTreeIndex());
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698