Index: cc/resources/tile_manager.cc |
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc |
index dff3a52f871ac6a80cd05b77e92fc25ab6b14fed..8a1f2e31852234c351d8c16a3f83a5ffa815ee7e 100644 |
--- a/cc/resources/tile_manager.cc |
+++ b/cc/resources/tile_manager.cc |
@@ -622,7 +622,7 @@ void TileManager::AssignGpuMemoryToTiles( |
MemoryUsage memory_required_by_tile_to_be_scheduled; |
if (!tile->raster_task_.get()) { |
memory_required_by_tile_to_be_scheduled = MemoryUsage::FromConfig( |
- tile->desired_texture_size(), resource_pool_->resource_format()); |
+ tile->desired_texture_size(), resource_pool_->default_format()); |
} |
bool tile_is_needed_now = priority.priority_bin == TilePriority::NOW; |
@@ -756,7 +756,8 @@ scoped_refptr<ImageDecodeTask> TileManager::CreateImageDecodeTask( |
scoped_refptr<RasterTask> TileManager::CreateRasterTask(Tile* tile) { |
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(); |
// Create and queue all image decode tasks that this tile depends on. |