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

Unified Diff: ui/gl/gl_version_info.h

Issue 1135943002: Pull in various gpu/command_buffer fixes from chromium (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « ui/gl/gl_context_stub_with_extensions.cc ('k') | ui/gl/gpu_timing.h » ('j') | 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 d8f27308b9bb5bb4e3d29b6312a2cb95b6836f56..96944758f458e9285c255b69b265935d7fcc31d1 100644
--- a/ui/gl/gl_version_info.h
+++ b/ui/gl/gl_version_info.h
@@ -19,6 +19,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 | « ui/gl/gl_context_stub_with_extensions.cc ('k') | ui/gl/gpu_timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698