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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
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 d16f27619059572d218311837a2bab71a1ddf437..5065ca5da6c388aaa400d6527f1f2181e05172c1 100644
--- a/content/common/gpu/client/command_buffer_metrics.cc
+++ b/content/common/gpu/client/command_buffer_metrics.cc
@@ -79,6 +79,10 @@ void RecordContextLost(CommandBufferContextType type,
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BrowserMainThread", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
break;
+ case BROWSER_WORKER_CONTEXT:
+ UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.BrowserWorker", reason,
+ CONTEXT_LOST_REASON_MAX_ENUM);
+ break;
case RENDER_COMPOSITOR_CONTEXT:
UMA_HISTOGRAM_ENUMERATION("GPU.ContextLost.RenderCompositor", reason,
CONTEXT_LOST_REASON_MAX_ENUM);
@@ -120,6 +124,8 @@ std::string CommandBufferContextTypeToString(CommandBufferContextType type) {
return "Compositor";
case BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT:
return "Offscreen-MainThread";
+ case BROWSER_WORKER_CONTEXT:
+ return "CompositorWorker";
case RENDER_COMPOSITOR_CONTEXT:
return "RenderCompositor";
case RENDER_WORKER_CONTEXT:
« no previous file with comments | « content/common/gpu/client/command_buffer_metrics.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698