Lines Matching refs:major
56 bool get_gl_version_for_mesa(int mesaMajorVersion, int* major, int* minor) { in get_gl_version_for_mesa() argument
63 *major = 1; in get_gl_version_for_mesa()
67 *major = 2; in get_gl_version_for_mesa()
71 *major = 3; in get_gl_version_for_mesa()
75 *major = 3; in get_gl_version_for_mesa()
79 *major = 3; in get_gl_version_for_mesa()
106 int major, minor; in GrGLGetStandardInUseFromString() local
109 int n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetStandardInUseFromString()
116 n = sscanf(versionString, "OpenGL ES-%c%c %d.%d", profile, profile+1, &major, &minor); in GrGLGetStandardInUseFromString()
123 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor); in GrGLGetStandardInUseFromString()
131 int major, minor, mesaMajor, mesaMinor; in GrGLIsMesaFromVersionString() local
132 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor, &mesaMinor); in GrGLIsMesaFromVersionString()
146 int major, minor; in GrGLGetVersionFromString() local
150 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor, &mesaMinor); in GrGLGetVersionFromString()
152 if (get_gl_version_for_mesa(mesaMajor, &major, &minor)) { in GrGLGetVersionFromString()
153 return GR_GL_VER(major, minor); in GrGLGetVersionFromString()
159 n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetVersionFromString()
161 return GR_GL_VER(major, minor); in GrGLGetVersionFromString()
166 &major, &minor); in GrGLGetVersionFromString()
168 return GR_GL_VER(major, minor); in GrGLGetVersionFromString()
171 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor); in GrGLGetVersionFromString()
173 return GR_GL_VER(major, minor); in GrGLGetVersionFromString()
185 int major, minor; in GrGLGetGLSLVersionFromString() local
187 int n = sscanf(versionString, "%d.%d", &major, &minor); in GrGLGetGLSLVersionFromString()
189 return GR_GLSL_VER(major, minor); in GrGLGetGLSLVersionFromString()
192 n = sscanf(versionString, "OpenGL ES GLSL ES %d.%d", &major, &minor); in GrGLGetGLSLVersionFromString()
194 return GR_GLSL_VER(major, minor); in GrGLGetGLSLVersionFromString()
199 n = sscanf(versionString, "OpenGL ES GLSL %d.%d", &major, &minor); in GrGLGetGLSLVersionFromString()
201 return GR_GLSL_VER(major, minor); in GrGLGetGLSLVersionFromString()