OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/gl_utils.h" | 5 #include "gpu/command_buffer/service/gl_utils.h" |
6 | 6 |
| 7 #include <unordered_set> |
| 8 |
7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
8 #include "gpu/command_buffer/common/capabilities.h" | 10 #include "gpu/command_buffer/common/capabilities.h" |
9 #include "gpu/command_buffer/service/feature_info.h" | 11 #include "gpu/command_buffer/service/feature_info.h" |
10 #include "ui/gl/gl_version_info.h" | 12 #include "ui/gl/gl_version_info.h" |
11 | 13 |
12 namespace gpu { | 14 namespace gpu { |
13 namespace gles2 { | 15 namespace gles2 { |
14 | 16 |
15 namespace { | 17 namespace { |
16 const char* GetDebugSourceString(GLenum source) { | 18 const char* GetDebugSourceString(GLenum source) { |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_LOW, 0, | 288 glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_LOW, 0, |
287 nullptr, GL_FALSE); | 289 nullptr, GL_FALSE); |
288 glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, | 290 glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, |
289 GL_DEBUG_SEVERITY_NOTIFICATION, 0, nullptr, GL_FALSE); | 291 GL_DEBUG_SEVERITY_NOTIFICATION, 0, nullptr, GL_FALSE); |
290 | 292 |
291 glDebugMessageCallback(&LogGLDebugMessage, nullptr); | 293 glDebugMessageCallback(&LogGLDebugMessage, nullptr); |
292 } | 294 } |
293 | 295 |
294 } // namespace gles2 | 296 } // namespace gles2 |
295 } // namespace gpu | 297 } // namespace gpu |
OLD | NEW |