diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-23 23:35:40 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-23 23:35:40 +0000 |
commit | 9f350118ec1f1876a2cf5702a031508031fc357c (patch) | |
tree | d7c3d68e6155b75b5d446578e29893f851458684 /cc/resources/tile_manager_perftest.cc | |
parent | 048b61c2df38c332a0d5773ac31d57a06b24d2c2 (diff) | |
download | chromium_src-9f350118ec1f1876a2cf5702a031508031fc357c.zip chromium_src-9f350118ec1f1876a2cf5702a031508031fc357c.tar.gz chromium_src-9f350118ec1f1876a2cf5702a031508031fc357c.tar.bz2 |
cc: Examine layers to determine if we're ready to activate.
This introduces a new mechanism for determining when
we're ready to activate the pending tree. The tile
priority is still used to determine when it's worth
waking up the compositor thread and evaluating if
we can activate. However, the actual check that
determines if we're ready to activate doesn't rely
on the state of scheduled raster tasks but is a
synchronous call on each layer.
The result is a pending tree activation mechanism that
is much easier to debug and validate for correctness,
while still providing the performance benefits of the
old mechanism by taking the "required to activate" field
of the tile priority into account when scheduling tasks.
BUG=375206
TEST=cc_unittests --gtest_filter=PictureLayerImplTest.AllTilesRequiredForActivationAreReadyToDraw
Review URL: https://codereview.chromium.org/287643004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/tile_manager_perftest.cc')
-rw-r--r-- | cc/resources/tile_manager_perftest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc index 22e7c66..c7fa68f 100644 --- a/cc/resources/tile_manager_perftest.cc +++ b/cc/resources/tile_manager_perftest.cc @@ -293,7 +293,7 @@ class TileManagerPerfTest : public testing::Test, public TileManagerClient { // TileManagerClient implementation. virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } - virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {} + virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} TileManager* tile_manager() { return host_impl_.tile_manager(); } |