OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 Logger class. | 5 // This file contains the Logger class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ |
9 | 9 |
| 10 #include <stdint.h> |
| 11 |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/macros.h" |
13 #include "gpu/gpu_export.h" | 16 #include "gpu/gpu_export.h" |
14 | 17 |
15 namespace gpu { | 18 namespace gpu { |
16 namespace gles2 { | 19 namespace gles2 { |
17 | 20 |
18 typedef base::Callback<void(int32 id, const std::string& msg)> MsgCallback; | 21 typedef base::Callback<void(int32_t id, const std::string& msg)> MsgCallback; |
19 | 22 |
20 class DebugMarkerManager; | 23 class DebugMarkerManager; |
21 | 24 |
22 class GPU_EXPORT Logger { | 25 class GPU_EXPORT Logger { |
23 public: | 26 public: |
24 static const int kMaxLogMessages = 256; | 27 static const int kMaxLogMessages = 256; |
25 | 28 |
26 explicit Logger(const DebugMarkerManager* debug_marker_manager); | 29 explicit Logger(const DebugMarkerManager* debug_marker_manager); |
27 ~Logger(); | 30 ~Logger(); |
28 | 31 |
(...skipping 20 matching lines...) Expand all Loading... |
49 | 52 |
50 MsgCallback msg_callback_; | 53 MsgCallback msg_callback_; |
51 DISALLOW_COPY_AND_ASSIGN(Logger); | 54 DISALLOW_COPY_AND_ASSIGN(Logger); |
52 }; | 55 }; |
53 | 56 |
54 } // namespace gles2 | 57 } // namespace gles2 |
55 } // namespace gpu | 58 } // namespace gpu |
56 | 59 |
57 #endif // GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ | 60 #endif // GPU_COMMAND_BUFFER_SERVICE_LOGGER_H_ |
58 | 61 |
OLD | NEW |