summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_tile_manager.cc
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 21:28:12 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 21:28:12 +0000
commit8f802b2596f69ecd68ac6496da0e4b661183a777 (patch)
tree8dff0d63a3a8dabf11bb9ceb93daab88159aa50b /cc/test/fake_tile_manager.cc
parentb9adabf3fd45ddbba723a7e78241df62c0cb730b (diff)
downloadchromium_src-8f802b2596f69ecd68ac6496da0e4b661183a777.zip
chromium_src-8f802b2596f69ecd68ac6496da0e4b661183a777.tar.gz
chromium_src-8f802b2596f69ecd68ac6496da0e4b661183a777.tar.bz2
Re-land: 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@273040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
-rw-r--r--cc/test/fake_tile_manager.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 496baea..1fc2e43 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -63,26 +63,17 @@ base::LazyInstance<FakeRasterizerImpl> g_fake_rasterizer =
FakeTileManager::FakeTileManager(TileManagerClient* client)
: TileManager(client,
+ base::MessageLoopProxy::current(),
NULL,
g_fake_rasterizer.Pointer(),
- true,
NULL) {}
FakeTileManager::FakeTileManager(TileManagerClient* client,
ResourcePool* resource_pool)
: TileManager(client,
+ base::MessageLoopProxy::current(),
resource_pool,
g_fake_rasterizer.Pointer(),
- true,
- NULL) {}
-
-FakeTileManager::FakeTileManager(TileManagerClient* client,
- ResourcePool* resource_pool,
- bool allow_on_demand_raster)
- : TileManager(client,
- resource_pool,
- g_fake_rasterizer.Pointer(),
- allow_on_demand_raster,
NULL) {}
FakeTileManager::~FakeTileManager() {}