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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "gpu/command_buffer/common/constants.h" 10 #include "gpu/command_buffer/common/constants.h"
11 11
12 namespace content { 12 namespace content {
13 namespace command_buffer_metrics {
danakj 2016/04/29 23:47:19 I put this file into a namespace cuz it was hard t
13 14
14 enum CommandBufferContextType { 15 enum ContextType {
15 DISPLAY_COMPOSITOR_ONSCREEN_CONTEXT, 16 DISPLAY_COMPOSITOR_ONSCREEN_CONTEXT,
16 BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT, 17 BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT,
17 BROWSER_WORKER_CONTEXT, 18 BROWSER_WORKER_CONTEXT,
18 RENDER_COMPOSITOR_CONTEXT, 19 RENDER_COMPOSITOR_CONTEXT,
19 RENDER_WORKER_CONTEXT, 20 RENDER_WORKER_CONTEXT,
20 RENDERER_MAINTHREAD_CONTEXT, 21 RENDERER_MAINTHREAD_CONTEXT,
21 GPU_VIDEO_ACCELERATOR_CONTEXT, 22 GPU_VIDEO_ACCELERATOR_CONTEXT,
22 OFFSCREEN_VIDEO_CAPTURE_CONTEXT, 23 OFFSCREEN_VIDEO_CAPTURE_CONTEXT,
23 OFFSCREEN_CONTEXT_FOR_WEBGL, 24 OFFSCREEN_CONTEXT_FOR_WEBGL,
24 CONTEXT_TYPE_UNKNOWN, 25 CONTEXT_TYPE_UNKNOWN,
25 OFFSCREEN_CONTEXT_FOR_TESTING = CONTEXT_TYPE_UNKNOWN, 26 OFFSCREEN_CONTEXT_FOR_TESTING = CONTEXT_TYPE_UNKNOWN,
26 }; 27 };
27 28
28 std::string CommandBufferContextTypeToString(CommandBufferContextType type); 29 std::string ContextTypeToString(ContextType type);
29 30
30 void UmaRecordContextInitFailed(CommandBufferContextType type); 31 void UmaRecordContextInitFailed(ContextType type);
31 32
32 void UmaRecordContextLost(CommandBufferContextType type, 33 void UmaRecordContextLost(ContextType type,
33 gpu::error::Error error, 34 gpu::error::Error error,
34 gpu::error::ContextLostReason reason); 35 gpu::error::ContextLostReason reason);
35 36
37 } // namespace command_buffer_metrics
36 } // namespace content 38 } // namespace content
37 39
38 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_ 40 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_METRICS_H_
OLDNEW
« 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