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-02-11 01:56:37 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-11 01:56:37 +0000
commit4e472a4fe3a3c2ecbf143b1ba29643d0a7e3252d (patch)
tree921fbbee1b520dbac199208c5287346abce3d607 /cc/test/fake_tile_manager.cc
parent51f63438920434df1ee9b0c9d289be721e80c5a0 (diff)
downloadchromium_src-4e472a4fe3a3c2ecbf143b1ba29643d0a7e3252d.zip
chromium_src-4e472a4fe3a3c2ecbf143b1ba29643d0a7e3252d.tar.gz
chromium_src-4e472a4fe3a3c2ecbf143b1ba29643d0a7e3252d.tar.bz2
cc: Prevent usage of rasterize on-demand with delegating renderer.
PictureDrawQuads are not yet supported by the delegating renderer. Generating this type of quads for on-demand raster of tiles cause invalid IPC to be sent to the parent compositor and the renderer to be killed. This makes us activate with low-res or checkerboard tiles until PictureDrawQuads are properly supported by the delegating renderer. BUG=340695 TEST=cc_unittests --gtest_filter=*RasterizeOnDemand* Review URL: https://codereview.chromium.org/157743007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
-rw-r--r--cc/test/fake_tile_manager.cc23
1 files changed, 20 insertions, 3 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 7740f33..b2a575f 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -84,7 +84,8 @@ FakeTileManager::FakeTileManager(TileManagerClient* client)
NULL,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
std::numeric_limits<unsigned>::max(),
- NULL) {}
+ NULL,
+ true) {}
FakeTileManager::FakeTileManager(TileManagerClient* client,
ResourceProvider* resource_provider)
@@ -92,7 +93,18 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
resource_provider,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
std::numeric_limits<unsigned>::max(),
- NULL) {}
+ NULL,
+ true) {}
+
+FakeTileManager::FakeTileManager(TileManagerClient* client,
+ ResourceProvider* resource_provider,
+ bool allow_on_demand_raster)
+ : TileManager(client,
+ resource_provider,
+ make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
+ std::numeric_limits<unsigned>::max(),
+ NULL,
+ allow_on_demand_raster) {}
FakeTileManager::FakeTileManager(TileManagerClient* client,
ResourceProvider* resource_provider,
@@ -101,7 +113,8 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
resource_provider,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
raster_task_limit_bytes,
- NULL) {}
+ NULL,
+ true) {}
FakeTileManager::~FakeTileManager() {}
@@ -125,6 +138,10 @@ void FakeTileManager::CheckForCompletedTasks() {
RasterWorkerPoolForTesting()->CheckForCompletedTasks();
}
+void FakeTileManager::DidFinishRunningTasksForTesting() {
+ DidFinishRunningTasks();
+}
+
void FakeTileManager::Release(Tile* tile) {
TileManager::Release(tile);
CleanUpReleasedTiles();