| 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" |
| 20 | 21 |
| 21 namespace gpu { | 22 namespace gpu { |
| 22 namespace gles2 { | 23 namespace gles2 { |
| 23 | 24 |
| 24 class Outputter; | 25 class Outputter; |
| 25 class GPUTrace; | 26 class GPUTrace; |
| 26 | 27 |
| 27 // Id used to keep trace namespaces separate | 28 // Id used to keep trace namespaces separate |
| 28 enum GpuTracerSource { | 29 enum GpuTracerSource { |
| 29 kTraceGroupInvalid = -1, | 30 kTraceGroupInvalid = -1, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 188 |
| 188 private: | 189 private: |
| 189 GPUTracer* gpu_tracer_; | 190 GPUTracer* gpu_tracer_; |
| 190 GpuTracerSource source_; | 191 GpuTracerSource source_; |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 } // namespace gles2 | 194 } // namespace gles2 |
| 194 } // namespace gpu | 195 } // namespace gpu |
| 195 | 196 |
| 196 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 197 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
| OLD | NEW |