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

Unified Diff: cc/resources/tile_manager.h

Issue 860813002: Remove the default format from ResourcePool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error in perftest. Created 5 years, 11 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
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index cdab9e69cb69fc8f39a70f2bac68dca74264a0cc..5e7cf793cb878c8d539785d061423a564e252589 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -105,6 +105,7 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient,
static scoped_ptr<TileManager> Create(TileManagerClient* client,
base::SequencedTaskRunner* task_runner,
ResourcePool* resource_pool,
+ ResourceFormat resource_format,
TileTaskRunner* tile_task_runner,
Rasterizer* rasterizer,
size_t scheduled_raster_task_limit);
@@ -139,7 +140,7 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient,
TileDrawInfo& draw_info = tiles[i]->draw_info();
draw_info.resource_ =
resource_pool_->AcquireResource(tiles[i]->desired_texture_size(),
- resource_pool_->default_format());
+ resource_format_);
}
}
@@ -179,6 +180,7 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient,
TileManager(TileManagerClient* client,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
ResourcePool* resource_pool,
+ ResourceFormat resource_format,
TileTaskRunner* tile_task_runner,
Rasterizer* rasterizer,
size_t scheduled_raster_task_limit);

Powered by Google App Engine
This is Rietveld 408576698