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/error_state.h" | 5 #include "gpu/command_buffer/service/error_state.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
11 #include "gpu/command_buffer/service/logger.h" | 11 #include "gpu/command_buffer/service/logger.h" |
12 #include "ui/gl/gl_bindings.h" | 12 #include "ui/gl/gl_bindings.h" |
13 | 13 |
14 namespace gpu { | 14 namespace gpu { |
15 namespace gles2 { | 15 namespace gles2 { |
16 | 16 |
17 class ErrorStateImpl : public ErrorState { | 17 class ErrorStateImpl : public ErrorState { |
18 public: | 18 public: |
19 explicit ErrorStateImpl(Logger* logger); | 19 explicit ErrorStateImpl(Logger* logger); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 GLES2Util::GetStringEnum(error) + " : " + | 174 GLES2Util::GetStringEnum(error) + " : " + |
175 function_name + ": was unhandled"); | 175 function_name + ": was unhandled"); |
176 NOTREACHED() << "GL error " << error << " was unhandled."; | 176 NOTREACHED() << "GL error " << error << " was unhandled."; |
177 } | 177 } |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 } // namespace gles2 | 181 } // namespace gles2 |
182 } // namespace gpu | 182 } // namespace gpu |
183 | 183 |
OLD | NEW |