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

Unified Diff: content/common/gpu/client/command_buffer_metrics.cc

Issue 1960803002: Split the media context from the compositor worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: workerthread: streams Created 4 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 | « content/common/gpu/client/command_buffer_metrics.h ('k') | content/common/gpu_process_launch_causes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_metrics.cc
diff --git a/content/common/gpu/client/command_buffer_metrics.cc b/content/common/gpu/client/command_buffer_metrics.cc
index 985cd802e085d307e3127c22d18c9782dc221aac..c4bbf195a9516b8dcc56ec2d75efb41e9cccafbf 100644
--- a/content/common/gpu/client/command_buffer_metrics.cc
+++ b/content/common/gpu/client/command_buffer_metrics.cc
@@ -112,6 +112,10 @@ void RecordContextLost(ContextType type,
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.WebGL", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
break;
+ case MEDIA_CONTEXT:
+ UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.Media", reason,
+ CONTEXT_LOST_REASON_MAX_ENUM);
+ break;
case CONTEXT_TYPE_UNKNOWN:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.Unknown", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
@@ -143,6 +147,8 @@ std::string ContextTypeToString(ContextType type) {
return "Offscreen-CaptureThread";
case OFFSCREEN_CONTEXT_FOR_WEBGL:
return "Offscreen-For-WebGL";
+ case MEDIA_CONTEXT:
+ return "Media";
default:
NOTREACHED();
return "unknown";
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.h ('k') | content/common/gpu_process_launch_causes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698