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

Unified Diff: cc/resources/tile_manager.cc

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var Created 5 years, 7 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 | « cc/resources/tile.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index b752303a193e2327433db7e05f58ad5fb07c56b6..442d7ad7a9a1ac1d922cdbfb5bc930555a81ef73 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -660,7 +660,7 @@ scoped_refptr<RasterTask> TileManager::CreateRasterTask(
ImageDecodeTask::Vector decode_tasks;
PixelRefTaskMap& existing_pixel_refs = image_decode_tasks_[tile->layer_id()];
std::vector<SkPixelRef*> pixel_refs;
- tile->raster_source()->GatherPixelRefs(
+ prioritized_tile.raster_source()->GatherPixelRefs(
tile->content_rect(), tile->contents_scale(), &pixel_refs);
for (SkPixelRef* pixel_ref : pixel_refs) {
uint32_t id = pixel_ref->getGenerationID();
@@ -680,7 +680,7 @@ scoped_refptr<RasterTask> TileManager::CreateRasterTask(
}
return make_scoped_refptr(new RasterTaskImpl(
- const_resource, tile->raster_source(), tile->content_rect(),
+ const_resource, prioritized_tile.raster_source(), tile->content_rect(),
tile->contents_scale(), prioritized_tile.priority().resolution,
tile->layer_id(), static_cast<const void*>(tile),
tile->source_frame_number(), tile->use_picture_analysis(),
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698