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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... | |
22 class Outputter; | 22 class Outputter; |
23 class GPUTrace; | 23 class GPUTrace; |
24 | 24 |
25 // Id used to keep trace namespaces separate | 25 // Id used to keep trace namespaces separate |
26 enum GpuTracerSource { | 26 enum GpuTracerSource { |
27 kTraceGroupInvalid = -1, | 27 kTraceGroupInvalid = -1, |
28 | 28 |
29 kTraceGroupMarker = 0, | 29 kTraceGroupMarker = 0, |
30 kTraceCHROMIUM = 1, | 30 kTraceCHROMIUM = 1, |
31 kTraceDecoder = 2, | 31 kTraceDecoder = 2, |
32 kTraceSwapBuffer = 3, | |
vmiura
2015/01/16 20:39:34
Should be OK to use kTraceDecoder.
David Yen
2015/01/16 21:34:19
Done.
| |
32 | 33 |
33 NUM_TRACER_SOURCES | 34 NUM_TRACER_SOURCES |
34 }; | 35 }; |
35 | 36 |
36 enum GpuTracerType { | 37 enum GpuTracerType { |
37 kTracerTypeInvalid = -1, | 38 kTracerTypeInvalid = -1, |
38 | 39 |
39 kTracerTypeARBTimer, | 40 kTracerTypeARBTimer, |
40 kTracerTypeDisjointTimer | 41 kTracerTypeDisjointTimer |
41 }; | 42 }; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 | 211 |
211 GLuint queries_[2]; | 212 GLuint queries_[2]; |
212 | 213 |
213 DISALLOW_COPY_AND_ASSIGN(GPUTrace); | 214 DISALLOW_COPY_AND_ASSIGN(GPUTrace); |
214 }; | 215 }; |
215 | 216 |
216 } // namespace gles2 | 217 } // namespace gles2 |
217 } // namespace gpu | 218 } // namespace gpu |
218 | 219 |
219 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 220 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
OLD | NEW |