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

Unified Diff: cc/resources/gpu_rasterizer.cc

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/gpu_rasterizer.cc
diff --git a/cc/resources/gpu_rasterizer.cc b/cc/resources/gpu_rasterizer.cc
index 6f9786d36e5e1494c75045ea804927e27f3b1432..dde90e9804c588c149b18283a5cf56c6ebd5cd23 100644
--- a/cc/resources/gpu_rasterizer.cc
+++ b/cc/resources/gpu_rasterizer.cc
@@ -59,6 +59,7 @@ PrepareTilesMode GpuRasterizer::GetPrepareTilesMode() {
void GpuRasterizer::RasterizeTiles(
const TileVector& tiles,
ResourcePool* resource_pool,
+ ResourceFormat resource_format,
const UpdateTileDrawInfoCallback& update_tile_draw_info) {
ScopedGpuRaster gpu_raster(context_provider_);
@@ -69,7 +70,7 @@ void GpuRasterizer::RasterizeTiles(
// See crbug.com/445919
scoped_ptr<ScopedResource> resource =
resource_pool->AcquireResource(tile->desired_texture_size(),
- resource_pool->default_format());
+ resource_format);
const ScopedResource* const_resource = resource.get();
RasterSource::SolidColorAnalysis analysis;

Powered by Google App Engine
This is Rietveld 408576698