aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrGLInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/include/GrGLInterface.h')
-rw-r--r--gpu/include/GrGLInterface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpu/include/GrGLInterface.h b/gpu/include/GrGLInterface.h
index e3942cd203..42ff0c8a2c 100644
--- a/gpu/include/GrGLInterface.h
+++ b/gpu/include/GrGLInterface.h
@@ -31,14 +31,17 @@
* Helpers for glGetString()
*/
+// these variants assume caller already has a string from glGetString()
void gl_version_from_string(int* major, int* minor,
const char* versionString);
+float gl_version_as_float_from_string(const char* versionString);
bool has_gl_extension_from_string(const char* ext,
const char* extensionString);
+// these variants call glGetString()
bool has_gl_extension(const char* ext);
void gl_version(int* major, int* minor);
-
+float gl_version_as_float();
////////////////////////////////////////////////////////////////////////////////