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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2904743002: cc: Add UMA for tracking decode duration for out of raster decodes. (Closed)
Patch Set: .. 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
Index: cc/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index b34cbb8f2e4ffd6fe2d43e9b440bfa1d96156ace..3af82d0823d9e8d50f2ea01be40771b3088b39e0 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::ImageDecodeType::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::ImageDecodeType::kInRaster);
image_controller_.GetTasksForImagesAndRef(&sync_decoded_images, &decode_tasks,
tracing_info);

Powered by Google App Engine
This is Rietveld 408576698