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

Unified Diff: cc/resources/gpu_rasterizer.cc

Issue 817133006: Support different formats in the same resource pool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO about removing the default format. 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
« no previous file with comments | « no previous file | cc/resources/one_copy_tile_task_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/gpu_rasterizer.cc
diff --git a/cc/resources/gpu_rasterizer.cc b/cc/resources/gpu_rasterizer.cc
index fe1025c11494638796ed59056395cfa3fe8ea2ee..6f9786d36e5e1494c75045ea804927e27f3b1432 100644
--- a/cc/resources/gpu_rasterizer.cc
+++ b/cc/resources/gpu_rasterizer.cc
@@ -68,7 +68,8 @@ void GpuRasterizer::RasterizeTiles(
// TODO(hendrikw): Don't create resources for solid color tiles.
// See crbug.com/445919
scoped_ptr<ScopedResource> resource =
- resource_pool->AcquireResource(tile->desired_texture_size());
+ resource_pool->AcquireResource(tile->desired_texture_size(),
+ resource_pool->default_format());
const ScopedResource* const_resource = resource.get();
RasterSource::SolidColorAnalysis analysis;
« no previous file with comments | « no previous file | cc/resources/one_copy_tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698