| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "ui/gl/gl_implementation.h" | 5 #include "ui/gl/gl_implementation.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
| 11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 14 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "build/build_config.h" |
| 15 #include "ui/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
| 16 #include "ui/gl/gl_gl_api_implementation.h" | 20 #include "ui/gl/gl_gl_api_implementation.h" |
| 17 #include "ui/gl/gl_version_info.h" | 21 #include "ui/gl/gl_version_info.h" |
| 18 | 22 |
| 19 namespace gfx { | 23 namespace gfx { |
| 20 | 24 |
| 21 namespace { | 25 namespace { |
| 22 | 26 |
| 23 const struct { | 27 const struct { |
| 24 const char* name; | 28 const char* name; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 const char* version_str = | 213 const char* version_str = |
| 210 reinterpret_cast<const char*>(glGetString(GL_VERSION)); | 214 reinterpret_cast<const char*>(glGetString(GL_VERSION)); |
| 211 unsigned major_version, minor_version; | 215 unsigned major_version, minor_version; |
| 212 bool is_es, is_es3; | 216 bool is_es, is_es3; |
| 213 gfx::GLVersionInfo::ParseVersionString( | 217 gfx::GLVersionInfo::ParseVersionString( |
| 214 version_str, &major_version, &minor_version, &is_es, &is_es3); | 218 version_str, &major_version, &minor_version, &is_es, &is_es3); |
| 215 return is_es || major_version < 3; | 219 return is_es || major_version < 3; |
| 216 } | 220 } |
| 217 | 221 |
| 218 } // namespace gfx | 222 } // namespace gfx |
| OLD | NEW |