Lines Matching refs:programID
108 void GrGLProgramBuilder::computeCountsAndStrides(GrGLuint programID, in computeCountsAndStrides() argument
122 GL_CALL(BindAttribLocation(programID, i, a.name())); in computeCountsAndStrides()
150 void GrGLProgramBuilder::storeShaderInCache(const SkSL::Program::Inputs& inputs, GrGLuint programID, in storeShaderInCache() argument
159 GL_CALL(GetProgramiv(programID, GL_PROGRAM_BINARY_LENGTH, &length)); in storeShaderInCache()
167 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary)); in storeShaderInCache()
185 GrGLuint programID; in finalize() local
186 GL_CALL_RET(programID, CreateProgram()); in finalize()
187 if (0 == programID) { in finalize()
194 GL_CALL(ProgramParameteri(programID, GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GR_GL_TRUE)); in finalize()
237 ProgramBinary(programID, binaryFormat, const_cast<void*>(binary), in finalize()
241 cached = this->checkLinkStatus(programID, errorHandler, nullptr, nullptr); in finalize()
245 this->computeCountsAndStrides(programID, primProc, false); in finalize()
288 this->cleanupProgram(programID, shadersToDelete); in finalize()
296 this->computeCountsAndStrides(programID, primProc, false); in finalize()
298 if (!this->compileAndAttachShaders(glsl[kFragment_GrShaderType], programID, in finalize()
300 this->cleanupProgram(programID, shadersToDelete); in finalize()
313 this->cleanupProgram(programID, shadersToDelete); in finalize()
317 if (!this->compileAndAttachShaders(glsl[kVertex_GrShaderType], programID, in finalize()
319 this->cleanupProgram(programID, shadersToDelete); in finalize()
326 this->computeCountsAndStrides(programID, primProc, true); in finalize()
340 this->cleanupProgram(programID, shadersToDelete); in finalize()
344 if (!this->compileAndAttachShaders(glsl[kGeometry_GrShaderType], programID, in finalize()
347 this->cleanupProgram(programID, shadersToDelete); in finalize()
351 this->bindProgramResourceLocations(programID); in finalize()
353 GL_CALL(LinkProgram(programID)); in finalize()
355 if (!this->checkLinkStatus(programID, errorHandler, sksl, glsl)) { in finalize()
356 GL_CALL(DeleteProgram(programID)); in finalize()
361 this->resolveProgramResourceLocations(programID, usedProgramBinaries); in finalize()
379 this->storeShaderInCache(inputs, programID, glsl, isSkSL); in finalize()
381 return this->createProgram(programID); in finalize()
384 void GrGLProgramBuilder::bindProgramResourceLocations(GrGLuint programID) { in bindProgramResourceLocations() argument
385 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
389 GL_CALL(BindFragDataLocation(programID, 0, in bindProgramResourceLocations()
393 GL_CALL(BindFragDataLocationIndexed(programID, 0, 1, in bindProgramResourceLocations()
404 GL_CALL(BindFragmentInputLocation(programID, i, in bindProgramResourceLocations()
410 bool GrGLProgramBuilder::checkLinkStatus(GrGLuint programID, in checkLinkStatus() argument
414 GL_CALL(GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in checkLinkStatus()
432 GL_CALL(GetProgramiv(programID, GR_GL_INFO_LOG_LENGTH, &infoLen)); in checkLinkStatus()
438 GL_CALL(GetProgramInfoLog(programID, infoLen+1, &length, (char*)log.get())); in checkLinkStatus()
445 void GrGLProgramBuilder::resolveProgramResourceLocations(GrGLuint programID, bool force) { in resolveProgramResourceLocations() argument
446 fUniformHandler.getUniformLocations(programID, fGpu->glCaps(), force); in resolveProgramResourceLocations()
457 programID, in resolveProgramResourceLocations()
464 void GrGLProgramBuilder::cleanupProgram(GrGLuint programID, const SkTDArray<GrGLuint>& shaderIDs) { in cleanupProgram() argument
465 GL_CALL(DeleteProgram(programID)); in cleanupProgram()
474 GrGLProgram* GrGLProgramBuilder::createProgram(GrGLuint programID) { in createProgram() argument
477 programID, in createProgram()