• Home
  • Raw
  • Download

Lines Matching refs:progIdx

3318     int progIdx = TextureToCopyProgramIdx(srcTex);  in createCopyProgram()  local
3337 SkASSERT(!fCopyPrograms[progIdx].fProgram); in createCopyProgram()
3338 GL_CALL_RET(fCopyPrograms[progIdx].fProgram, CreateProgram()); in createCopyProgram()
3339 if (!fCopyPrograms[progIdx].fProgram) { in createCopyProgram()
3406 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3414 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3419 GL_CALL(LinkProgram(fCopyPrograms[progIdx].fProgram)); in createCopyProgram()
3421 GL_CALL_RET(fCopyPrograms[progIdx].fTextureUniform, in createCopyProgram()
3422 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_texture")); in createCopyProgram()
3423 GL_CALL_RET(fCopyPrograms[progIdx].fPosXformUniform, in createCopyProgram()
3424 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_posXform")); in createCopyProgram()
3425 GL_CALL_RET(fCopyPrograms[progIdx].fTexCoordXformUniform, in createCopyProgram()
3426 GetUniformLocation(fCopyPrograms[progIdx].fProgram, "u_texCoordXform")); in createCopyProgram()
3428 GL_CALL(BindAttribLocation(fCopyPrograms[progIdx].fProgram, 0, "a_vertex")); in createCopyProgram()
3436 bool GrGLGpu::createMipmapProgram(int progIdx) { in createMipmapProgram() argument
3437 const bool oddWidth = SkToBool(progIdx & 0x2); in createMipmapProgram()
3438 const bool oddHeight = SkToBool(progIdx & 0x1); in createMipmapProgram()
3443 SkASSERT(!fMipmapPrograms[progIdx].fProgram); in createMipmapProgram()
3444 GL_CALL_RET(fMipmapPrograms[progIdx].fProgram, CreateProgram()); in createMipmapProgram()
3445 if (!fMipmapPrograms[progIdx].fProgram) { in createMipmapProgram()
3565 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3573 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3578 GL_CALL(LinkProgram(fMipmapPrograms[progIdx].fProgram)); in createMipmapProgram()
3580 GL_CALL_RET(fMipmapPrograms[progIdx].fTextureUniform, in createMipmapProgram()
3581 GetUniformLocation(fMipmapPrograms[progIdx].fProgram, "u_texture")); in createMipmapProgram()
3582 GL_CALL_RET(fMipmapPrograms[progIdx].fTexCoordXformUniform, in createMipmapProgram()
3583 GetUniformLocation(fMipmapPrograms[progIdx].fProgram, "u_texCoordXform")); in createMipmapProgram()
3585 GL_CALL(BindAttribLocation(fMipmapPrograms[progIdx].fProgram, 0, "a_vertex")); in createMipmapProgram()
3598 int progIdx = TextureToCopyProgramIdx(srcTex); in copySurfaceAsDraw() local
3604 if (!fCopyPrograms[progIdx].fProgram) { in copySurfaceAsDraw()
3623 this->flushProgram(fCopyPrograms[progIdx].fProgram); in copySurfaceAsDraw()
3662 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fPosXformUniform, dx1 - dx0, dy1 - dy0, dx0, dy0)); in copySurfaceAsDraw()
3663 GL_CALL(Uniform4f(fCopyPrograms[progIdx].fTexCoordXformUniform, in copySurfaceAsDraw()
3665 GL_CALL(Uniform1i(fCopyPrograms[progIdx].fTextureUniform, 0)); in copySurfaceAsDraw()
3851 int progIdx = TextureSizeToMipmapProgramIdx(width, height); in onRegenerateMipMapLevels() local
3852 if (!fMipmapPrograms[progIdx].fProgram) { in onRegenerateMipMapLevels()
3853 if (!this->createMipmapProgram(progIdx)) { in onRegenerateMipMapLevels()
3860 this->flushProgram(fMipmapPrograms[progIdx].fProgram); in onRegenerateMipMapLevels()
3865 GL_CALL(Uniform4f(fMipmapPrograms[progIdx].fTexCoordXformUniform, in onRegenerateMipMapLevels()
3867 GL_CALL(Uniform1i(fMipmapPrograms[progIdx].fTextureUniform, 0)); in onRegenerateMipMapLevels()