Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: cc/test/fake_tile_manager.cc

Issue 157743007: cc: Prevent usage of rasterize on-demand with delegating renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more unit test Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_tile_manager.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_tile_manager.cc
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 7740f33796be4bc3e27349d3699b63a2b295e97c..b2a575f95140dd4f7e92fa87ef2ebaa23dd0ab81 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();
« no previous file with comments | « cc/test/fake_tile_manager.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698