OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_GL_GL_VERSION_INFO_H_ | 5 #ifndef UI_GL_GL_VERSION_INFO_H_ |
6 #define UI_GL_GL_VERSION_INFO_H_ | 6 #define UI_GL_GL_VERSION_INFO_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ui/gl/gl_export.h" | 12 #include "ui/gl/gl_export.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gl { |
15 | 15 |
16 struct GL_EXPORT GLVersionInfo { | 16 struct GL_EXPORT GLVersionInfo { |
17 GLVersionInfo(const char* version_str, const char* renderer_str, | 17 GLVersionInfo(const char* version_str, const char* renderer_str, |
18 const char* extensions_str); | 18 const char* extensions_str); |
19 | 19 |
20 GLVersionInfo(const char* version_str, const char* renderer_str, | 20 GLVersionInfo(const char* version_str, const char* renderer_str, |
21 const std::set<std::string>& exts); | 21 const std::set<std::string>& exts); |
22 | 22 |
23 bool IsAtLeastGL(unsigned major, unsigned minor) const { | 23 bool IsAtLeastGL(unsigned major, unsigned minor) const { |
24 return !is_es && (major_version > major || | 24 return !is_es && (major_version > major || |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool is_es2; | 65 bool is_es2; |
66 bool is_es3; | 66 bool is_es3; |
67 bool is_desktop_core_profile; | 67 bool is_desktop_core_profile; |
68 | 68 |
69 private: | 69 private: |
70 GLVersionInfo(const char* version_str, const char* renderer_str); | 70 GLVersionInfo(const char* version_str, const char* renderer_str); |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); | 72 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace gfx | 75 } // namespace gl |
76 | 76 |
77 #endif // UI_GL_GL_VERSION_INFO_H_ | 77 #endif // UI_GL_GL_VERSION_INFO_H_ |
OLD | NEW |