Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: ui/gl/gl_version_info.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_switches.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gl/gl_switches.cc ('k') | ui/gl/gl_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698