Lines Matching refs:fCopyPrograms
258 for (size_t i = 0; i < SK_ARRAY_COUNT(fCopyPrograms); ++i) { in ~GrGLGpu()
259 if (0 != fCopyPrograms[i].fProgram) { in ~GrGLGpu()
260 GL_CALL(DeleteProgram(fCopyPrograms[i].fProgram)); in ~GrGLGpu()
394 for (size_t i = 0; i < SK_ARRAY_COUNT(fCopyPrograms); ++i) { in contextAbandoned()
395 fCopyPrograms[i].fProgram = 0; in contextAbandoned()
3367 for (size_t i = 0; i < SK_ARRAY_COUNT(fCopyPrograms); ++i) { in createCopyPrograms()
3368 fCopyPrograms[i].fProgram = 0; in createCopyPrograms()
3374 SkASSERT(3 == SK_ARRAY_COUNT(fCopyPrograms)); in createCopyPrograms()
3456 GL_CALL_RET(fCopyPrograms[i].fProgram, CreateProgram()); in createCopyPrograms()
3462 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[i].fProgram, in createCopyPrograms()
3468 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[i].fProgram, in createCopyPrograms()
3472 GL_CALL(LinkProgram(fCopyPrograms[i].fProgram)); in createCopyPrograms()
3474 GL_CALL_RET(fCopyPrograms[i].fTextureUniform, in createCopyPrograms()
3475 GetUniformLocation(fCopyPrograms[i].fProgram, "u_texture")); in createCopyPrograms()
3476 GL_CALL_RET(fCopyPrograms[i].fPosXformUniform, in createCopyPrograms()
3477 GetUniformLocation(fCopyPrograms[i].fProgram, "u_posXform")); in createCopyPrograms()
3478 GL_CALL_RET(fCopyPrograms[i].fTexCoordXformUniform, in createCopyPrograms()
3479 GetUniformLocation(fCopyPrograms[i].fProgram, "u_texCoordXform")); in createCopyPrograms()
3481 GL_CALL(BindAttribLocation(fCopyPrograms[i].fProgram, 0, "a_vertex")); in createCopyPrograms()
3680 GL_CALL(UseProgram(fCopyPrograms[progIdx].fProgram)); in copySurfaceAsDraw()
3681 fHWProgramID = fCopyPrograms[progIdx].fProgram; in copySurfaceAsDraw()
3722 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fPosXformUniform, dx1 - dx0, dy1 - dy0, dx0, dy0)); in copySurfaceAsDraw()
3723 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fTexCoordXformUniform, in copySurfaceAsDraw()
3725 GL_CALL(Uniform1i(fCopyPrograms[progIdx].fTextureUniform, 0)); in copySurfaceAsDraw()