| 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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 kTraceCHROMIUM, | 38 kTraceCHROMIUM, |
| 39 kTraceDecoder, | 39 kTraceDecoder, |
| 40 kTraceDisjoint, // Used internally. | 40 kTraceDisjoint, // Used internally. |
| 41 | 41 |
| 42 NUM_TRACER_SOURCES | 42 NUM_TRACER_SOURCES |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Marker structure for a Trace. | 45 // Marker structure for a Trace. |
| 46 struct TraceMarker { | 46 struct TraceMarker { |
| 47 TraceMarker(const std::string& category, const std::string& name); | 47 TraceMarker(const std::string& category, const std::string& name); |
| 48 TraceMarker(const TraceMarker& other); |
| 48 ~TraceMarker(); | 49 ~TraceMarker(); |
| 49 | 50 |
| 50 std::string category_; | 51 std::string category_; |
| 51 std::string name_; | 52 std::string name_; |
| 52 scoped_refptr<GPUTrace> trace_; | 53 scoped_refptr<GPUTrace> trace_; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 // Traces GPU Commands. | 56 // Traces GPU Commands. |
| 56 class GPU_EXPORT GPUTracer | 57 class GPU_EXPORT GPUTracer |
| 57 : public base::SupportsWeakPtr<GPUTracer> { | 58 : public base::SupportsWeakPtr<GPUTracer> { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 214 |
| 214 private: | 215 private: |
| 215 GPUTracer* gpu_tracer_; | 216 GPUTracer* gpu_tracer_; |
| 216 GpuTracerSource source_; | 217 GpuTracerSource source_; |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace gles2 | 220 } // namespace gles2 |
| 220 } // namespace gpu | 221 } // namespace gpu |
| 221 | 222 |
| 222 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 223 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
| OLD | NEW |