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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 1979413002: cc : Rebuild property trees when opacity changes only if its required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/layer.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 9ab367896bb704950d2679505aefb47ad2abc2c8..d0f344ff203f7c357e38b7b450408c35eb1a645d 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -536,16 +536,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) {
sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_);
micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
- // We don't track changes to effect tree on main thread. But, to preserve any
- // change tracking done on active tree's effect tree, we copy it to the main
- // thread's effect tree before we push the main thread property trees to
- // active tree.
- if (property_trees_changed_on_active_tree)
- property_trees_.ResetAllChangeTracking(
- PropertyTrees::ResetFlags::ALL_TREES);
- else
- property_trees_.ResetAllChangeTracking(
- PropertyTrees::ResetFlags::TRANSFORM_TREE);
jaydasika 2016/05/17 01:40:01 TRANSFORM_TREE flag is used only here outside test
+ property_trees_.ResetAllChangeTracking(PropertyTrees::ResetFlags::ALL_TREES);
}
void LayerTreeHost::WillCommit() {
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698