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" |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 static void ParseVersionString(const char* version_str, | 42 static void ParseVersionString(const char* version_str, |
43 unsigned* major_version, | 43 unsigned* major_version, |
44 unsigned* minor_version, | 44 unsigned* minor_version, |
45 bool* is_es, | 45 bool* is_es, |
46 bool* is_es2, | 46 bool* is_es2, |
47 bool* is_es3); | 47 bool* is_es3); |
48 | 48 |
49 bool is_es; | 49 bool is_es; |
50 bool is_angle; | 50 bool is_angle; |
| 51 bool is_mesa; |
51 unsigned major_version; | 52 unsigned major_version; |
52 unsigned minor_version; | 53 unsigned minor_version; |
53 bool is_es2; | 54 bool is_es2; |
54 bool is_es3; | 55 bool is_es3; |
55 bool is_desktop_core_profile; | 56 bool is_desktop_core_profile; |
56 bool is_es3_capable; | 57 bool is_es3_capable; |
57 | 58 |
58 private: | 59 private: |
59 GLVersionInfo(); | 60 GLVersionInfo(); |
60 void Initialize(const char* version_str, | 61 void Initialize(const char* version_str, |
61 const char* renderer_str, | 62 const char* renderer_str, |
62 const std::set<std::string>& extensions); | 63 const std::set<std::string>& extensions); |
63 bool IsES3Capable(const std::set<std::string>& extensions) const; | 64 bool IsES3Capable(const std::set<std::string>& extensions) const; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); | 66 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace gl | 69 } // namespace gl |
69 | 70 |
70 #endif // UI_GL_GL_VERSION_INFO_H_ | 71 #endif // UI_GL_GL_VERSION_INFO_H_ |
OLD | NEW |