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 <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
17 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 17 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
18 #include "gpu/command_buffer/service/gpu_timing.h" | 18 #include "gpu/command_buffer/service/gpu_timing.h" |
19 #include "gpu/gpu_export.h" | 19 #include "gpu/gpu_export.h" |
20 #include "ui/gl/gl_bindings.h" | |
21 | 20 |
22 namespace gpu { | 21 namespace gpu { |
23 namespace gles2 { | 22 namespace gles2 { |
24 | 23 |
25 class Outputter; | 24 class Outputter; |
26 class GPUTrace; | 25 class GPUTrace; |
27 | 26 |
28 // Id used to keep trace namespaces separate | 27 // Id used to keep trace namespaces separate |
29 enum GpuTracerSource { | 28 enum GpuTracerSource { |
30 kTraceGroupInvalid = -1, | 29 kTraceGroupInvalid = -1, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 187 |
189 private: | 188 private: |
190 GPUTracer* gpu_tracer_; | 189 GPUTracer* gpu_tracer_; |
191 GpuTracerSource source_; | 190 GpuTracerSource source_; |
192 }; | 191 }; |
193 | 192 |
194 } // namespace gles2 | 193 } // namespace gles2 |
195 } // namespace gpu | 194 } // namespace gpu |
196 | 195 |
197 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 196 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
OLD | NEW |