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

Unified Diff: cc/tiles/gpu_image_decode_cache.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/base/devtools_instrumentation.cc ('k') | cc/tiles/image_decode_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_cache.cc
diff --git a/cc/tiles/gpu_image_decode_cache.cc b/cc/tiles/gpu_image_decode_cache.cc
index a194751219e178254beae8ea24132f487ea9b835..8ec875f65767d872202e523f78f617daf83176d2 100644
--- a/cc/tiles/gpu_image_decode_cache.cc
+++ b/cc/tiles/gpu_image_decode_cache.cc
@@ -173,7 +173,8 @@ class ImageDecodeTaskImpl : public TileTask {
"source_prepare_tiles_id", tracing_info_.prepare_tiles_id);
devtools_instrumentation::ScopedImageDecodeTask image_decode_task(
image_.image().get(),
- devtools_instrumentation::ScopedImageDecodeTask::GPU);
+ devtools_instrumentation::ScopedImageDecodeTask::kGpu,
+ ImageDecodeCache::ToScopedTaskType(tracing_info_.task_type));
cache_->DecodeImage(image_);
}
@@ -399,6 +400,7 @@ GpuImageDecodeCache::~GpuImageDecodeCache() {
bool GpuImageDecodeCache::GetTaskForImageAndRef(const DrawImage& draw_image,
const TracingInfo& tracing_info,
scoped_refptr<TileTask>* task) {
+ DCHECK_EQ(tracing_info.task_type, TaskType::kInRaster);
return GetTaskForImageAndRefInternal(
draw_image, tracing_info, DecodeTaskType::PART_OF_UPLOAD_TASK, task);
}
@@ -407,7 +409,8 @@ bool GpuImageDecodeCache::GetOutOfRasterDecodeTaskForImageAndRef(
const DrawImage& draw_image,
scoped_refptr<TileTask>* task) {
return GetTaskForImageAndRefInternal(
- draw_image, TracingInfo(), DecodeTaskType::STAND_ALONE_DECODE_TASK, task);
+ draw_image, TracingInfo(0, TilePriority::NOW, TaskType::kOutOfRaster),
+ DecodeTaskType::STAND_ALONE_DECODE_TASK, task);
}
bool GpuImageDecodeCache::GetTaskForImageAndRefInternal(
« no previous file with comments | « cc/base/devtools_instrumentation.cc ('k') | cc/tiles/image_decode_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698