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 #include "gpu/command_buffer/service/logger.h" | 5 #include "gpu/command_buffer/service/logger.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "gpu/command_buffer/common/debug_marker_manager.h" | 10 #include "gpu/command_buffer/common/debug_marker_manager.h" |
11 #include "gpu/command_buffer/service/gpu_switches.h" | 11 #include "gpu/command_buffer/service/gpu_switches.h" |
12 | 12 |
13 namespace gpu { | 13 namespace gpu { |
14 namespace gles2 { | 14 namespace gles2 { |
15 | 15 |
16 Logger::Logger(const DebugMarkerManager* debug_marker_manager) | 16 Logger::Logger(const DebugMarkerManager* debug_marker_manager) |
17 : debug_marker_manager_(debug_marker_manager), | 17 : debug_marker_manager_(debug_marker_manager), |
18 log_message_count_(0), | 18 log_message_count_(0), |
19 log_synthesized_gl_errors_(true) { | 19 log_synthesized_gl_errors_(true) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return prefix.empty() ? this_in_hex_ : prefix; | 55 return prefix.empty() ? this_in_hex_ : prefix; |
56 } | 56 } |
57 | 57 |
58 void Logger::SetMsgCallback(const MsgCallback& callback) { | 58 void Logger::SetMsgCallback(const MsgCallback& callback) { |
59 msg_callback_ = callback; | 59 msg_callback_ = callback; |
60 } | 60 } |
61 | 61 |
62 } // namespace gles2 | 62 } // namespace gles2 |
63 } // namespace gpu | 63 } // namespace gpu |
64 | 64 |
OLD | NEW |