Home
last modified time | relevance | path

Searched refs:glValues (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/gpu/gl/
DGrGLGpu.cpp2936 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()
[all …]
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp2924 static void get_gl_swizzle_values(const GrSwizzle& swizzle, GrGLenum glValues[4]) { in get_gl_swizzle_values()
2927 case 'r': glValues[i] = GR_GL_RED; break; in get_gl_swizzle_values()
2928 case 'g': glValues[i] = GR_GL_GREEN; break; in get_gl_swizzle_values()
2929 case 'b': glValues[i] = GR_GL_BLUE; break; in get_gl_swizzle_values()
2930 case 'a': glValues[i] = GR_GL_ALPHA; break; in get_gl_swizzle_values()
3044 GrGLenum glValues[4]; in bindTexture() local
3045 get_gl_swizzle_values(swizzle, glValues); in bindTexture()
3049 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_R, glValues[0])); in bindTexture()
3050 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_G, glValues[1])); in bindTexture()
3051 GL_CALL(TexParameteri(target, GR_GL_TEXTURE_SWIZZLE_B, glValues[2])); in bindTexture()
[all …]