summaryrefslogtreecommitdiffstats
path: root/cc/trees/tree_synchronizer.cc
diff options
context:
space:
mode:
authorclholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 03:24:34 +0000
committerclholgat@chromium.org <clholgat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 03:24:34 +0000
commitad0250b469ec6afbd7cdceab302ec2142ea90ebb (patch)
tree2488c1a4764074adf78e326f2af1d4e5df897d95 /cc/trees/tree_synchronizer.cc
parentb8c7eed238ffa4a47f90df3a077f4ee1daf23569 (diff)
downloadchromium_src-ad0250b469ec6afbd7cdceab302ec2142ea90ebb.zip
chromium_src-ad0250b469ec6afbd7cdceab302ec2142ea90ebb.tar.gz
chromium_src-ad0250b469ec6afbd7cdceab302ec2142ea90ebb.tar.bz2
Pluming for needs_push_properties for the impl tree.
This change ensures that pending tree is only synced with the active tree if something has changed on the pending tree. Notable performance improvements to BrowserCompositorInvalidateLayerTreePerfTest Before: *RESULT layer_tree_host_frame_time: dense_layer_tree= 768.87890625 us After: *RESULT layer_tree_host_frame_time: dense_layer_tree= 655.21044921875 us (run on a Galaxy Nexus running Android 4.3) BUG=259511 Review URL: https://codereview.chromium.org/25896002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/tree_synchronizer.cc')
-rw-r--r--cc/trees/tree_synchronizer.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/cc/trees/tree_synchronizer.cc b/cc/trees/tree_synchronizer.cc
index 48a9d5b..27f9dab 100644
--- a/cc/trees/tree_synchronizer.cc
+++ b/cc/trees/tree_synchronizer.cc
@@ -187,17 +187,6 @@ void UpdateScrollbarLayerPointersRecursive(const RawPtrLayerImplMap* new_layers,
}
// static
-void TreeSynchronizer::SetNumDependentsNeedPushProperties(
- Layer* layer, size_t num) {
- layer->num_dependents_need_push_properties_ = num;
-}
-
-// static
-void TreeSynchronizer::SetNumDependentsNeedPushProperties(
- LayerImpl* layer, size_t num) {
-}
-
-// static
template <typename LayerType>
void TreeSynchronizer::PushPropertiesInternal(
LayerType* layer,
@@ -240,8 +229,8 @@ void TreeSynchronizer::PushPropertiesInternal(
// every PushProperties tree walk. Here we keep track of those layers, and
// ensure that their ancestors know about them for the next PushProperties
// tree walk.
- SetNumDependentsNeedPushProperties(
- layer, num_dependents_need_push_properties);
+ layer->num_dependents_need_push_properties_ =
+ num_dependents_need_push_properties;
}
bool add_self_to_parent = num_dependents_need_push_properties > 0 ||