| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 if (IsAtLeastGL(3, 2)) | 48 if (IsAtLeastGL(3, 2)) |
| 49 return true; | 49 return true; |
| 50 #endif | 50 #endif |
| 51 return false; | 51 return false; |
| 52 } | 52 } |
| 53 | 53 |
| 54 static void ParseVersionString(const char* version_str, | 54 static void ParseVersionString(const char* version_str, |
| 55 unsigned* major_version, | 55 unsigned* major_version, |
| 56 unsigned* minor_version, | 56 unsigned* minor_version, |
| 57 bool* is_es, | 57 bool* is_es, |
| 58 bool* is_es2, | |
| 59 bool* is_es3); | 58 bool* is_es3); |
| 60 | 59 |
| 61 bool is_es; | 60 bool is_es; |
| 62 bool is_angle; | 61 bool is_angle; |
| 63 unsigned major_version; | 62 unsigned major_version; |
| 64 unsigned minor_version; | 63 unsigned minor_version; |
| 65 bool is_es2; | |
| 66 bool is_es3; | 64 bool is_es3; |
| 67 bool is_desktop_core_profile; | 65 bool is_desktop_core_profile; |
| 68 | 66 |
| 69 private: | 67 private: |
| 70 GLVersionInfo(const char* version_str, const char* renderer_str); | 68 GLVersionInfo(const char* version_str, const char* renderer_str); |
| 71 | 69 |
| 72 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); | 70 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); |
| 73 }; | 71 }; |
| 74 | 72 |
| 75 } // namespace gfx | 73 } // namespace gfx |
| 76 | 74 |
| 77 #endif // UI_GL_GL_VERSION_INFO_H_ | 75 #endif // UI_GL_GL_VERSION_INFO_H_ |
| OLD | NEW |