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, | |
37 kTraceCHROMIUM, | 36 kTraceCHROMIUM, |
38 kTraceDecoder, | 37 kTraceDecoder, |
39 kTraceDisjoint, // Used internally. | 38 kTraceDisjoint, // Used internally. |
40 | 39 |
41 NUM_TRACER_SOURCES | 40 NUM_TRACER_SOURCES |
42 }; | 41 }; |
43 | 42 |
44 // Marker structure for a Trace. | 43 // Marker structure for a Trace. |
45 struct TraceMarker { | 44 struct TraceMarker { |
46 TraceMarker(const std::string& category, const std::string& name); | 45 TraceMarker(const std::string& category, const std::string& name); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 214 |
216 private: | 215 private: |
217 GPUTracer* gpu_tracer_; | 216 GPUTracer* gpu_tracer_; |
218 GpuTracerSource source_; | 217 GpuTracerSource source_; |
219 }; | 218 }; |
220 | 219 |
221 } // namespace gles2 | 220 } // namespace gles2 |
222 } // namespace gpu | 221 } // namespace gpu |
223 | 222 |
224 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 223 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
OLD | NEW |