| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 protected: | 110 protected: |
| 111 virtual ~Outputter() {} | 111 virtual ~Outputter() {} |
| 112 friend class base::RefCounted<Outputter>; | 112 friend class base::RefCounted<Outputter>; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 class TraceOutputter : public Outputter { | 115 class TraceOutputter : public Outputter { |
| 116 public: | 116 public: |
| 117 static scoped_refptr<TraceOutputter> Create(const std::string& name); | 117 static scoped_refptr<TraceOutputter> Create(const std::string& name); |
| 118 virtual void Trace(const std::string& name, | 118 virtual void Trace(const std::string& name, |
| 119 int64 start_time, | 119 int64 start_time, |
| 120 int64 end_time) OVERRIDE; | 120 int64 end_time) override; |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 friend class base::RefCounted<Outputter>; | 123 friend class base::RefCounted<Outputter>; |
| 124 explicit TraceOutputter(const std::string& name); | 124 explicit TraceOutputter(const std::string& name); |
| 125 virtual ~TraceOutputter(); | 125 virtual ~TraceOutputter(); |
| 126 | 126 |
| 127 base::Thread named_thread_; | 127 base::Thread named_thread_; |
| 128 uint64 local_trace_id_; | 128 uint64 local_trace_id_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(TraceOutputter); | 130 DISALLOW_COPY_AND_ASSIGN(TraceOutputter); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 GLuint queries_[2]; | 165 GLuint queries_[2]; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(GPUTrace); | 167 DISALLOW_COPY_AND_ASSIGN(GPUTrace); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace gles2 | 170 } // namespace gles2 |
| 171 } // namespace gpu | 171 } // namespace gpu |
| 172 | 172 |
| 173 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ | 173 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACER_H_ |
| OLD | NEW |