summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_tile_manager.h
diff options
context:
space:
mode:
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-24 00:52:38 +0000
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-24 00:52:38 +0000
commitafbee36d83e71dfe1dac945a268256281c1cee95 (patch)
treee7e593056cb1fc6893cd38590cc54ac0d8971c6f /cc/test/fake_tile_manager.h
parentdb01231e0efc97413ac41fb0625d56010189f2d5 (diff)
downloadchromium_src-afbee36d83e71dfe1dac945a268256281c1cee95.zip
chromium_src-afbee36d83e71dfe1dac945a268256281c1cee95.tar.gz
chromium_src-afbee36d83e71dfe1dac945a268256281c1cee95.tar.bz2
Revert 272635 "cc: Examine layers to determine if we're ready to..."
Caused layout test failures and out-of-memory errors on several Mac bots on the Blink waterfall. See Issue 375206. BUG=375206 > 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 TBR=reveman@chromium.org Review URL: https://codereview.chromium.org/301493002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.h')
-rw-r--r--cc/test/fake_tile_manager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/test/fake_tile_manager.h b/cc/test/fake_tile_manager.h
index 05dbe61..c5c7a25 100644
--- a/cc/test/fake_tile_manager.h
+++ b/cc/test/fake_tile_manager.h
@@ -16,6 +16,9 @@ class FakeTileManager : public TileManager {
public:
explicit FakeTileManager(TileManagerClient* client);
FakeTileManager(TileManagerClient* client, ResourcePool* resource_pool);
+ FakeTileManager(TileManagerClient* client,
+ ResourcePool* resource_pool,
+ bool allow_on_demand_raster);
virtual ~FakeTileManager();
bool HasBeenAssignedMemory(Tile* tile);