Lines Matching refs:glValues
2936 static void get_gl_swizzle_values(const GrSwizzle& swizzle, GrGLenum glValues[4]) { in get_gl_swizzle_values()
2939 case 'r': glValues[i] = GR_GL_RED; break; in get_gl_swizzle_values()
2940 case 'g': glValues[i] = GR_GL_GREEN; break; in get_gl_swizzle_values()
2941 case 'b': glValues[i] = GR_GL_BLUE; break; in get_gl_swizzle_values()
2942 case 'a': glValues[i] = GR_GL_ALPHA; break; in get_gl_swizzle_values()
2943 case '1': glValues[i] = GR_GL_ONE; break; in get_gl_swizzle_values()
3057 GrGLenum glValues[4]; in bindTexture() local
3058 get_gl_swizzle_values(swizzle, glValues); in bindTexture()
3062 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_R, glValues[0])); in bindTexture()
3063 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_G, glValues[1])); in bindTexture()
3064 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_B, glValues[2])); in bindTexture()
3065 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_A, glValues[3])); in bindTexture()
3067 GR_STATIC_ASSERT(sizeof(glValues[0]) == sizeof(GrGLint)); in bindTexture()
3069 reinterpret_cast<const GrGLint*>(glValues))); in bindTexture()