Lines Matching refs:progIdx
3434 int progIdx = TextureToCopyProgramIdx(srcTex); in createCopyProgram() local
3452 SkASSERT(!fCopyPrograms[progIdx].fProgram); in createCopyProgram()
3453 GL_CALL_RET(fCopyPrograms[progIdx].fProgram, CreateProgram()); in createCopyProgram()
3454 if (!fCopyPrograms[progIdx].fProgram) { in createCopyProgram()
3525 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3532 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3537 GL_CALL(LinkProgram(fCopyPrograms[progIdx].fProgram)); in createCopyProgram()
3539 GL_CALL_RET(fCopyPrograms[progIdx].fTextureUniform, in createCopyProgram()
3540 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_texture")); in createCopyProgram()
3541 GL_CALL_RET(fCopyPrograms[progIdx].fPosXformUniform, in createCopyProgram()
3542 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_posXform")); in createCopyProgram()
3543 GL_CALL_RET(fCopyPrograms[progIdx].fTexCoordXformUniform, in createCopyProgram()
3544 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_texCoordXform")); in createCopyProgram()
3546 GL_CALL(BindAttribLocation(fCopyPrograms[progIdx].fProgram, 0, "a_vertex")); in createCopyProgram()
3554 bool GrGLGpu::createMipmapProgram(int progIdx) { in createMipmapProgram() argument
3555 const bool oddWidth = SkToBool(progIdx & 0x2); in createMipmapProgram()
3556 const bool oddHeight = SkToBool(progIdx & 0x1); in createMipmapProgram()
3561 SkASSERT(!fMipmapPrograms[progIdx].fProgram); in createMipmapProgram()
3562 GL_CALL_RET(fMipmapPrograms[progIdx].fProgram, CreateProgram()); in createMipmapProgram()
3563 if (!fMipmapPrograms[progIdx].fProgram) { in createMipmapProgram()
3683 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3690 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3695 GL_CALL(LinkProgram(fMipmapPrograms[progIdx].fProgram)); in createMipmapProgram()
3697 GL_CALL_RET(fMipmapPrograms[progIdx].fTextureUniform, in createMipmapProgram()
3698 GetUniformLocation(fMipmapPrograms[progIdx].fProgram, "u_texture")); in createMipmapProgram()
3699 GL_CALL_RET(fMipmapPrograms[progIdx].fTexCoordXformUniform, in createMipmapProgram()
3700 GetUniformLocation(fMipmapPrograms[progIdx].fProgram, "u_texCoordXform")); in createMipmapProgram()
3702 GL_CALL(BindAttribLocation(fMipmapPrograms[progIdx].fProgram, 0, "a_vertex")); in createMipmapProgram()
3828 int progIdx = TextureToCopyProgramIdx(srcTex); in copySurfaceAsDraw() local
3830 if (!fCopyPrograms[progIdx].fProgram) { in copySurfaceAsDraw()
3850 GL_CALL(UseProgram(fCopyPrograms[progIdx].fProgram)); in copySurfaceAsDraw()
3851 fHWProgramID = fCopyPrograms[progIdx].fProgram; in copySurfaceAsDraw()
3888 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fPosXformUniform, dx1 - dx0, dy1 - dy0, dx0, dy0)); in copySurfaceAsDraw()
3889 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fTexCoordXformUniform, in copySurfaceAsDraw()
3891 GL_CALL(Uniform1i(fCopyPrograms[progIdx].fTextureUniform, 0)); in copySurfaceAsDraw()
4121 int progIdx = TextureSizeToMipmapProgramIdx(width, height); in generateMipmap() local
4122 if (!fMipmapPrograms[progIdx].fProgram) { in generateMipmap()
4123 if (!this->createMipmapProgram(progIdx)) { in generateMipmap()
4128 GL_CALL(UseProgram(fMipmapPrograms[progIdx].fProgram)); in generateMipmap()
4129 fHWProgramID = fMipmapPrograms[progIdx].fProgram; in generateMipmap()
4134 GL_CALL(Uniform4f(fMipmapPrograms[progIdx].fTexCoordXformUniform, in generateMipmap()
4136 GL_CALL(Uniform1i(fMipmapPrograms[progIdx].fTextureUniform, 0)); in generateMipmap()