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

Unified Diff: cc/test/fake_tile_manager.cc

Issue 807233002: cc: GPU rasterize tiles synchronously in PrepareToDraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed 2 lines when splitting this from patch 743023002. Created 6 years 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/resources/tile_task_worker_pool_unittest.cc ('k') | cc/test/layer_tree_pixel_resource_test.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 bb23aa824fcdd9a8a531298911c4105df749985e..a685aff1bf960aa1420cfaf6046cdeb4251ea105 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -67,6 +67,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client)
base::MessageLoopProxy::current(),
NULL,
g_fake_tile_task_runner.Pointer(),
+ NULL,
std::numeric_limits<size_t>::max()) {
}
@@ -76,17 +77,20 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
base::MessageLoopProxy::current(),
resource_pool,
g_fake_tile_task_runner.Pointer(),
+ NULL,
std::numeric_limits<size_t>::max()) {
}
FakeTileManager::~FakeTileManager() {}
+// TODO(vmiura): This seems unused. Remove it?
void FakeTileManager::AssignMemoryToTiles(
const GlobalStateThatImpactsTilePriority& state) {
tiles_for_raster.clear();
SetGlobalStateForTesting(state);
- AssignGpuMemoryToTiles(&tiles_for_raster);
+ AssignGpuMemoryToTiles(&tiles_for_raster, std::numeric_limits<size_t>::max(),
+ false);
}
bool FakeTileManager::HasBeenAssignedMemory(Tile* tile) {
« no previous file with comments | « cc/resources/tile_task_worker_pool_unittest.cc ('k') | cc/test/layer_tree_pixel_resource_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698