ozone: evdev: Don't crash without cursor in scroll & click events
[chromium-blink-merge.git] / ui / gl / gl_version_info.h
blob13b323faaf3756be4b5c9dbeb02713f66299d5b7
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
3 // found in the LICENSE file.
5 #ifndef UI_GL_GL_VERSION_INFO_H_
6 #define UI_GL_GL_VERSION_INFO_H_
8 #include <string>
9 #include "base/basictypes.h"
11 namespace gfx {
13 struct GLVersionInfo {
14 GLVersionInfo(const char* version_str, const char* renderer_str);
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;
23 bool is_gl1;
24 bool is_gl2;
25 bool is_gl3;
26 bool is_gl4;
28 bool is_angle;
30 private:
31 DISALLOW_COPY_AND_ASSIGN(GLVersionInfo);
34 } // namespace gfx
36 #endif // UI_GL_GL_VERSION_INFO_H_