diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-27 05:41:18 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-27 05:41:18 +0000 |
commit | 4c9bb9593a27f25e1d14d477899a38d8b57ca887 (patch) | |
tree | 0583790fa1c29d7865ff4c4b4afd475de5108973 /cc/occlusion_tracker_unittest.cc | |
parent | a30a0a3661c01b689cddfd2e8c5eb76169782962 (diff) | |
download | chromium_src-4c9bb9593a27f25e1d14d477899a38d8b57ca887.zip chromium_src-4c9bb9593a27f25e1d14d477899a38d8b57ca887.tar.gz chromium_src-4c9bb9593a27f25e1d14d477899a38d8b57ca887.tar.bz2 |
cc: Throttle tile priority updates to once a frame.
The tile priority updates happen when calcDrawProperties is called. Now we
make sure we early out except in the following cases.
On the pending tree, we calculate tile priorities:
- Immediately after a commit, so that we can start raster jobs appropriately.
- On an animation tick if it is not the same impl frame as the commit occured
in.
On the active tree, we calculate tile priorities:
- During draw, if it is not in the same impl frame as the tree activation
occured in. In that frame, we already have priorities from the pending tree.
BUG=170807
Review URL: https://chromiumcodereview.appspot.com/12045086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/occlusion_tracker_unittest.cc')
-rw-r--r-- | cc/occlusion_tracker_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/occlusion_tracker_unittest.cc b/cc/occlusion_tracker_unittest.cc index 494c05e..0065401 100644 --- a/cc/occlusion_tracker_unittest.cc +++ b/cc/occlusion_tracker_unittest.cc @@ -277,7 +277,7 @@ protected: DCHECK(!root->renderSurface()); - LayerTreeHostCommon::calculateDrawProperties(root, root->bounds(), 1, 1, dummyMaxTextureSize, false, m_renderSurfaceLayerListImpl); + LayerTreeHostCommon::calculateDrawProperties(root, root->bounds(), 1, 1, dummyMaxTextureSize, false, m_renderSurfaceLayerListImpl, false); m_layerIterator = m_layerIteratorBegin = Types::TestLayerIterator::begin(&m_renderSurfaceLayerListImpl); } |