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

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

Issue 1936773002: Move attributes and context type out to ContextProviderCommandBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rmwgc3d
Patch Set: Created 4 years, 8 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.h
diff --git a/content/common/gpu/client/command_buffer_metrics.h b/content/common/gpu/client/command_buffer_metrics.h
index 0cd62bb22096529427e985aa88433ce05ef88203..f354f5c47d7b9bc3dbccf455102ca587f52af7a5 100644
--- a/content/common/gpu/client/command_buffer_metrics.h
+++ b/content/common/gpu/client/command_buffer_metrics.h
@@ -10,8 +10,9 @@
#include "gpu/command_buffer/common/constants.h"
namespace content {
+namespace command_buffer_metrics {
danakj 2016/04/29 23:47:19 I put this file into a namespace cuz it was hard t
-enum CommandBufferContextType {
+enum ContextType {
DISPLAY_COMPOSITOR_ONSCREEN_CONTEXT,
BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT,
BROWSER_WORKER_CONTEXT,
@@ -25,14 +26,15 @@ enum CommandBufferContextType {
OFFSCREEN_CONTEXT_FOR_TESTING = CONTEXT_TYPE_UNKNOWN,
};
-std::string CommandBufferContextTypeToString(CommandBufferContextType type);
+std::string ContextTypeToString(ContextType type);
-void UmaRecordContextInitFailed(CommandBufferContextType type);
+void UmaRecordContextInitFailed(ContextType type);
-void UmaRecordContextLost(CommandBufferContextType type,
+void UmaRecordContextLost(ContextType type,
gpu::error::Error error,
gpu::error::ContextLostReason reason);
+} // namespace command_buffer_metrics
} // namespace content
#endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/common/gpu/client/command_buffer_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698