OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // This file contains the GPUTrace class. | |
6 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_TRACE_H_ | |
7 #define GPU_COMMAND_BUFFER_SERVICE_GPU_TRACE_H_ | |
8 | |
9 #include <string> | |
10 | |
11 #include "base/basictypes.h" | |
12 | |
13 namespace gpu { | |
14 namespace gles2 { | |
15 | |
16 class GPUTrace { | |
17 public: | |
18 explicit GPUTrace(const std::string& name); | |
19 ~GPUTrace(); | |
20 | |
21 void EnableStartTrace(); | |
22 void EnableEndTrace(); | |
23 | |
24 const char* name(); | |
25 | |
26 private: | |
27 std::string name_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(GPUTrace); | |
30 }; | |
31 | |
32 } // namespace gles2 | |
33 } // namespace gpu | |
34 | |
35 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_TRACE_H_ | |
OLD | NEW |