Index: src/gpu/gl/GrGLUtil.cpp |
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
index 96679fcfd5cd558e78b17101c2f060e9056e912f..4ff645249b8d4cab13a3d8730555332e49c54cd3 100644 |
--- a/src/gpu/gl/GrGLUtil.cpp |
+++ b/src/gpu/gl/GrGLUtil.cpp |
@@ -93,10 +93,10 @@ bool get_gl_version_for_mesa(int mesaMajorVersion, int* major, int* minor) { |
/////////////////////////////////////////////////////////////////////////////// |
-GrGLBinding GrGLGetBindingInUseFromString(const char* versionString) { |
+GrGLStandard GrGLGetStandardInUseFromString(const char* versionString) { |
if (NULL == versionString) { |
SkDEBUGFAIL("NULL GL version string."); |
- return kNone_GrGLBinding; |
+ return kNone_GrGLStandard; |
} |
int major, minor; |
@@ -104,7 +104,7 @@ GrGLBinding GrGLGetBindingInUseFromString(const char* versionString) { |
// check for desktop |
int n = sscanf(versionString, "%d.%d", &major, &minor); |
if (2 == n) { |
- return kDesktop_GrGLBinding; |
+ return kGL_GrGLStandard; |
} |
// check for ES 1 |
@@ -112,15 +112,15 @@ GrGLBinding GrGLGetBindingInUseFromString(const char* versionString) { |
n = sscanf(versionString, "OpenGL ES-%c%c %d.%d", profile, profile+1, &major, &minor); |
if (4 == n) { |
// we no longer support ES1. |
- return kNone_GrGLBinding; |
+ return kNone_GrGLStandard; |
} |
// check for ES2 |
n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor); |
if (2 == n) { |
- return kES_GrGLBinding; |
+ return kGLES_GrGLStandard; |
} |
- return kNone_GrGLBinding; |
+ return kNone_GrGLStandard; |
} |
bool GrGLIsMesaFromVersionString(const char* versionString) { |
@@ -228,12 +228,6 @@ GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { |
return kOther_GrGLRenderer; |
} |
-GrGLBinding GrGLGetBindingInUse(const GrGLInterface* gl) { |
- const GrGLubyte* v; |
- GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION)); |
- return GrGLGetBindingInUseFromString((const char*) v); |
-} |
- |
GrGLVersion GrGLGetVersion(const GrGLInterface* gl) { |
const GrGLubyte* v; |
GR_GL_CALL_RET(gl, v, GetString(GR_GL_VERSION)); |