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

Unified Diff: cc/test/fake_tile_manager.cc

Issue 151003010: Merge 250273 "cc: Prevent usage of rasterize on-demand with dele..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1833/src/
Patch Set: 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
===================================================================
--- cc/test/fake_tile_manager.cc (revision 250868)
+++ cc/test/fake_tile_manager.cc (working copy)
@@ -84,7 +84,8 @@
NULL,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
std::numeric_limits<unsigned>::max(),
- NULL) {}
+ NULL,
+ true) {}
FakeTileManager::FakeTileManager(TileManagerClient* client,
ResourceProvider* resource_provider)
@@ -92,16 +93,28 @@
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,
size_t raster_task_limit_bytes)
: TileManager(client,
resource_provider,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
raster_task_limit_bytes,
- NULL) {}
+ NULL,
+ true) {}
FakeTileManager::~FakeTileManager() {}
@@ -125,6 +138,10 @@
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