OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains the GPUTrace class. | 5 // This file contains the GPUTrace class. |
6 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 6 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
7 #define GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 7 #define GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <stack> | 10 #include <stack> |
(...skipping 15 matching lines...) Expand all Loading... |
26 namespace gpu { | 26 namespace gpu { |
27 namespace gles2 { | 27 namespace gles2 { |
28 | 28 |
29 class Outputter; | 29 class Outputter; |
30 class GPUTrace; | 30 class GPUTrace; |
31 | 31 |
32 // Id used to keep trace namespaces separate | 32 // Id used to keep trace namespaces separate |
33 enum GpuTracerSource { | 33 enum GpuTracerSource { |
34 kTraceGroupInvalid = -1, | 34 kTraceGroupInvalid = -1, |
35 | 35 |
36 kTraceGroupMarker = 0, | 36 kTraceCHROMIUM = 0, |
37 kTraceCHROMIUM = 1, | 37 kTraceDecoder = 1, |
38 kTraceDecoder = 2, | |
39 | 38 |
40 NUM_TRACER_SOURCES | 39 NUM_TRACER_SOURCES |
41 }; | 40 }; |
42 | 41 |
43 // Marker structure for a Trace. | 42 // Marker structure for a Trace. |
44 struct TraceMarker { | 43 struct TraceMarker { |
45 TraceMarker(const std::string& category, const std::string& name); | 44 TraceMarker(const std::string& category, const std::string& name); |
46 ~TraceMarker(); | 45 ~TraceMarker(); |
47 | 46 |
48 std::string category_; | 47 std::string category_; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 210 |
212 private: | 211 private: |
213 GPUTracer* gpu_tracer_; | 212 GPUTracer* gpu_tracer_; |
214 GpuTracerSource source_; | 213 GpuTracerSource source_; |
215 }; | 214 }; |
216 | 215 |
217 } // namespace gles2 | 216 } // namespace gles2 |
218 } // namespace gpu | 217 } // namespace gpu |
219 | 218 |
220 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 219 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
OLD | NEW |