Lines Matching refs:programID
135 void GrGLProgramBuilder::computeCountsAndStrides(GrGLuint programID, in computeCountsAndStrides() argument
149 GL_CALL(BindAttribLocation(programID, i, a.name())); in computeCountsAndStrides()
216 void GrGLProgramBuilder::storeShaderInCache(const SkSL::Program::Inputs& inputs, GrGLuint programID, in storeShaderInCache() argument
225 GL_CALL(GetProgramiv(programID, GL_PROGRAM_BINARY_LENGTH, &length)); in storeShaderInCache()
229 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary.get())); in storeShaderInCache()
264 GrGLuint programID; in finalize() local
265 GL_CALL_RET(programID, CreateProgram()); in finalize()
266 if (0 == programID) { in finalize()
272 GL_CALL(ProgramParameteri(programID, GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GR_GL_TRUE)); in finalize()
307 ProgramBinary(programID, binaryFormat, (void*) (bytes + offset), in finalize()
311 cached = this->checkLinkStatus(programID); in finalize()
315 this->computeCountsAndStrides(programID, primProc, false); in finalize()
346 this->cleanupProgram(programID, shadersToDelete); in finalize()
354 this->computeCountsAndStrides(programID, primProc, false); in finalize()
356 if (!this->compileAndAttachShaders(glsl.fs().c_str(), glsl.fs().size(), programID, in finalize()
359 this->cleanupProgram(programID, shadersToDelete); in finalize()
373 this->cleanupProgram(programID, shadersToDelete); in finalize()
377 if (!this->compileAndAttachShaders(glsl.vs().c_str(), glsl.vs().size(), programID, in finalize()
380 this->cleanupProgram(programID, shadersToDelete); in finalize()
387 this->computeCountsAndStrides(programID, primProc, true); in finalize()
402 this->cleanupProgram(programID, shadersToDelete); in finalize()
406 if (!this->compileAndAttachShaders(glsl.gs().c_str(), glsl.gs().size(), programID, in finalize()
409 this->cleanupProgram(programID, shadersToDelete); in finalize()
413 this->bindProgramResourceLocations(programID); in finalize()
415 GL_CALL(LinkProgram(programID)); in finalize()
417 if (!this->checkLinkStatus(programID)) { in finalize()
418 GL_CALL(DeleteProgram(programID)); in finalize()
445 this->resolveProgramResourceLocations(programID); in finalize()
449 this->storeShaderInCache(inputs, programID, glsl); in finalize()
451 return this->createProgram(programID); in finalize()
454 void GrGLProgramBuilder::bindProgramResourceLocations(GrGLuint programID) { in bindProgramResourceLocations() argument
455 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
459 GL_CALL(BindFragDataLocation(programID, 0, in bindProgramResourceLocations()
463 GL_CALL(BindFragDataLocationIndexed(programID, 0, 1, in bindProgramResourceLocations()
474 GL_CALL(BindFragmentInputLocation(programID, i, in bindProgramResourceLocations()
480 bool GrGLProgramBuilder::checkLinkStatus(GrGLuint programID) { in checkLinkStatus() argument
482 GL_CALL(GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in checkLinkStatus()
486 GL_CALL(GetProgramiv(programID, GR_GL_INFO_LOG_LENGTH, &infoLen)); in checkLinkStatus()
492 GL_CALL(GetProgramInfoLog(programID, in checkLinkStatus()
502 void GrGLProgramBuilder::resolveProgramResourceLocations(GrGLuint programID) { in resolveProgramResourceLocations() argument
503 fUniformHandler.getUniformLocations(programID, fGpu->glCaps()); in resolveProgramResourceLocations()
514 programID, in resolveProgramResourceLocations()
521 void GrGLProgramBuilder::cleanupProgram(GrGLuint programID, const SkTDArray<GrGLuint>& shaderIDs) { in cleanupProgram() argument
522 GL_CALL(DeleteProgram(programID)); in cleanupProgram()
531 GrGLProgram* GrGLProgramBuilder::createProgram(GrGLuint programID) { in createProgram() argument
534 programID, in createProgram()