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

Unified Diff: cc/tiles/tile_manager.cc

Issue 1279843004: cc: Plumb more details about pixel refs to tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/tiles/image_decode_controller.cc ('k') | skia/ext/pixel_ref_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index 3ff2885006d3f1cdb04e8ddc4f5128d40e0c060e..f90faa08d35c62b4bfa58f75b667e105d0a8c74a 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -689,10 +689,10 @@ scoped_refptr<RasterTask> TileManager::CreateRasterTask(
// Create and queue all image decode tasks that this tile depends on.
ImageDecodeTask::Vector decode_tasks;
- std::vector<SkPixelRef*> pixel_refs;
+ std::vector<skia::PositionPixelRef> pixel_refs;
prioritized_tile.raster_source()->GatherPixelRefs(
tile->content_rect(), tile->contents_scale(), &pixel_refs);
- for (SkPixelRef* pixel_ref : pixel_refs) {
+ for (const skia::PositionPixelRef& pixel_ref : pixel_refs) {
decode_tasks.push_back(image_decode_controller_.GetTaskForPixelRef(
pixel_ref, tile->layer_id(), prepare_tiles_count_));
}
« no previous file with comments | « cc/tiles/image_decode_controller.cc ('k') | skia/ext/pixel_ref_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698