Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GL_VERSION_INFO_H_ | |
| 6 #define UI_GL_VERSION_INFO_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include "base/basictypes.h" | |
| 10 | |
| 11 namespace gfx { | |
| 12 | |
| 13 struct GLVersionInfo { | |
| 14 GLVersionInfo(const char* version_str); | |
|
piman
2013/12/04 22:45:12
nit: explicit.
oetuaho
2013/12/05 09:47:14
Done.
| |
| 15 | |
| 16 // New flags, such as is_gl4_4 could be introduced as needed. | |
| 17 // For now, this level of granularity is enough. | |
| 18 bool is_es; | |
| 19 bool is_es1; | |
| 20 bool is_es2; | |
| 21 bool is_es3; | |
| 22 | |
| 23 bool is_gl1; | |
| 24 bool is_gl2; | |
| 25 bool is_gl3; | |
| 26 bool is_gl4; | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo); | |
| 30 }; | |
| 31 | |
| 32 } // namespace gfx | |
| 33 | |
| 34 #endif // UI_GL_VERSION_INFO_H_ | |
| OLD | NEW |