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

Unified Diff: ui/gl/gl_version_info.h

Issue 1106833002: Emulate GL_PRIMITIVE_RESTART_FIXED_INDEX: part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_version_info.h
diff --git a/ui/gl/gl_version_info.h b/ui/gl/gl_version_info.h
index 1bfca2014ecd9db7290c41434ad158a3222307df..561a94fc644119a7e96eed4822230aac614aa40c 100644
--- a/ui/gl/gl_version_info.h
+++ b/ui/gl/gl_version_info.h
@@ -24,6 +24,11 @@ struct GL_EXPORT GLVersionInfo {
(major_version == major && minor_version >= minor));
}
+ bool IsLowerThanGL(unsigned major, unsigned minor) const {
+ return !is_es && (major_version < major ||
+ (major_version == major && minor_version < minor));
+ }
+
bool IsAtLeastGLES(unsigned major, unsigned minor) const {
return is_es && (major_version > major ||
(major_version == major && minor_version >= minor));
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698