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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2904743002: cc: Add UMA for tracking decode duration for out of raster decodes. (Closed)
Patch Set: move Created 3 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/tiles/software_image_decode_cache.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 b34cbb8f2e4ffd6fe2d43e9b440bfa1d96156ace..4db308b1167ff76b660843dcc0e51a239d372f5e 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -986,8 +986,9 @@ void TileManager::ScheduleTasks(
// TODO(vmpstr): SOON is misleading here, but these images can come from
// several diffent tiles. Rethink what we actually want to trace here. Note
// that I'm using SOON, since it can't be NOW (these are prepaint).
- ImageDecodeCache::TracingInfo tracing_info(prepare_tiles_count_,
- TilePriority::SOON);
+ ImageDecodeCache::TracingInfo tracing_info(
+ prepare_tiles_count_, TilePriority::SOON,
+ ImageDecodeCache::TaskType::kInRaster);
std::vector<scoped_refptr<TileTask>> new_locked_image_tasks =
image_controller_.SetPredecodeImages(std::move(new_locked_images),
tracing_info);
@@ -1121,7 +1122,8 @@ scoped_refptr<TileTask> TileManager::CreateRasterTask(
// Get the tasks for the required images.
ImageDecodeCache::TracingInfo tracing_info(
- prepare_tiles_count_, prioritized_tile.priority().priority_bin);
+ prepare_tiles_count_, prioritized_tile.priority().priority_bin,
+ ImageDecodeCache::TaskType::kInRaster);
image_controller_.GetTasksForImagesAndRef(&sync_decoded_images, &decode_tasks,
tracing_info);
« no previous file with comments | « cc/tiles/software_image_decode_cache.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698