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

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

Issue 2190033002: content: Add ContextProviderFactory to create a render ContextProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove display_ DCHECK. Created 4 years, 4 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/content_browser.gypi » ('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 bc70c88bbddf0e2545c5ad934df15936ff30580d..391f04376396577dd21b285c37cf2e987255ac48 100644
--- a/content/common/gpu/client/command_buffer_metrics.cc
+++ b/content/common/gpu/client/command_buffer_metrics.cc
@@ -117,6 +117,12 @@ void RecordContextLost(ContextType type,
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.Media", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
break;
+ case BLIMP_RENDER_COMPOSITOR_CONTEXT:
+ UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BlimpRenderCompositor", reason,
+ CONTEXT_LOST_REASON_MAX_ENUM);
+ case BLIMP_RENDER_WORKER_CONTEXT:
+ UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BlimpRenderWorker", reason,
+ CONTEXT_LOST_REASON_MAX_ENUM);
case CONTEXT_TYPE_UNKNOWN:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.Unknown", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
@@ -150,6 +156,10 @@ std::string ContextTypeToString(ContextType type) {
return "Offscreen-For-WebGL";
case MEDIA_CONTEXT:
return "Media";
+ case BLIMP_RENDER_COMPOSITOR_CONTEXT:
+ return "BlimpRenderCompositor";
+ case BLIMP_RENDER_WORKER_CONTEXT:
+ return "BlimpRenderWorker";
default:
NOTREACHED();
return "unknown";
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698