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

Unified Diff: cc/layers/layer.cc

Issue 1565783002: Revert of Determine a layer's IsAffectedByPageScale property without using Layer Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/layers/heads_up_display_layer_impl_unittest.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 108e10373ea95d88f6b509a1add63a1efe29d9d7..c085f16bedf5ad21113671c6db8bd58a5882f517 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -1352,6 +1352,11 @@
frame_timing_requests_dirty_ = false;
}
+ bool is_page_scale_layer = this == layer_tree_host()->page_scale_layer();
+ bool parent_affected =
+ layer->parent() && layer->parent()->IsAffectedByPageScale();
+ layer->SetIsAffectedByPageScale(is_page_scale_layer || parent_affected);
+
// Reset any state that should be cleared for the next update.
stacking_order_changed_ = false;
update_rect_ = gfx::Rect();
« no previous file with comments | « cc/layers/heads_up_display_layer_impl_unittest.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698