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

Unified Diff: services/ui/public/cpp/gpu/command_buffer_metrics.cc

Issue 2586323002: mus: Use ui::ContextProviderCommandBuffer. (Closed)
Patch Set: . Created 4 years 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 | « services/ui/public/cpp/gpu/command_buffer_metrics.h ('k') | services/ui/public/cpp/gpu/gpu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/command_buffer_metrics.cc
diff --git a/services/ui/public/cpp/gpu/command_buffer_metrics.cc b/services/ui/public/cpp/gpu/command_buffer_metrics.cc
index 2d3505b914e8ccdaf4e1f75f95480cf805b49f5c..6f9e91d91aed42d675252b9dfa5a4612a1311f65 100644
--- a/services/ui/public/cpp/gpu/command_buffer_metrics.cc
+++ b/services/ui/public/cpp/gpu/command_buffer_metrics.cc
@@ -120,9 +120,15 @@ void RecordContextLost(ContextType type,
case BLIMP_RENDER_COMPOSITOR_CONTEXT:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BlimpRenderCompositor", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
+ break;
case BLIMP_RENDER_WORKER_CONTEXT:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BlimpRenderWorker", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
+ break;
+ case MUS_CLIENT_CONTEXT:
+ UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.MusClient", reason,
+ CONTEXT_LOST_REASON_MAX_ENUM);
+ break;
case CONTEXT_TYPE_UNKNOWN:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.Unknown", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
@@ -160,6 +166,8 @@ std::string ContextTypeToString(ContextType type) {
return "BlimpRenderCompositor";
case BLIMP_RENDER_WORKER_CONTEXT:
return "BlimpRenderWorker";
+ case MUS_CLIENT_CONTEXT:
+ return "MusClientContext";
default:
NOTREACHED();
return "unknown";
« no previous file with comments | « services/ui/public/cpp/gpu/command_buffer_metrics.h ('k') | services/ui/public/cpp/gpu/gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698