Lines Matching refs:programID
135 void GrGLProgramBuilder::computeCountsAndStrides(GrGLuint programID, in computeCountsAndStrides() argument
149 GL_CALL(BindAttribLocation(programID, i, a.name())); in computeCountsAndStrides()
174 void GrGLProgramBuilder::storeShaderInCache(const SkSL::Program::Inputs& inputs, GrGLuint programID, in storeShaderInCache() argument
183 GL_CALL(GetProgramiv(programID, GL_PROGRAM_BINARY_LENGTH, &length)); in storeShaderInCache()
187 GL_CALL(GetProgramBinary(programID, length, &length, &binaryFormat, binary.get())); in storeShaderInCache()
216 GrGLuint programID; in finalize() local
217 GL_CALL_RET(programID, CreateProgram()); in finalize()
218 if (0 == programID) { in finalize()
224 GL_CALL(ProgramParameteri(programID, GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GR_GL_TRUE)); in finalize()
258 ProgramBinary(programID, binaryFormat, (void*) (bytes + offset), in finalize()
262 cached = this->checkLinkStatus(programID); in finalize()
266 this->computeCountsAndStrides(programID, primProc, false); in finalize()
291 this->cleanupProgram(programID, shadersToDelete); in finalize()
298 this->computeCountsAndStrides(programID, primProc, false); in finalize()
301 if (!this->compileAndAttachShaders(glsl.c_str(), glsl.size(), programID, in finalize()
304 this->cleanupProgram(programID, shadersToDelete); in finalize()
315 if (!vs || !this->compileAndAttachShaders(glsl.c_str(), glsl.size(), programID, in finalize()
318 this->cleanupProgram(programID, shadersToDelete); in finalize()
325 this->computeCountsAndStrides(programID, primProc, true); in finalize()
337 if (!gs || !this->compileAndAttachShaders(glsl.c_str(), glsl.size(), programID, in finalize()
340 this->cleanupProgram(programID, shadersToDelete); in finalize()
344 this->bindProgramResourceLocations(programID); in finalize()
346 GL_CALL(LinkProgram(programID)); in finalize()
348 if (!this->checkLinkStatus(programID)) { in finalize()
349 GL_CALL(DeleteProgram(programID)); in finalize()
376 this->resolveProgramResourceLocations(programID); in finalize()
380 this->storeShaderInCache(inputs, programID, glsl); in finalize()
382 return this->createProgram(programID); in finalize()
385 void GrGLProgramBuilder::bindProgramResourceLocations(GrGLuint programID) { in bindProgramResourceLocations() argument
386 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
390 GL_CALL(BindFragDataLocation(programID, 0, in bindProgramResourceLocations()
394 GL_CALL(BindFragDataLocationIndexed(programID, 0, 1, in bindProgramResourceLocations()
405 GL_CALL(BindFragmentInputLocation(programID, i, in bindProgramResourceLocations()
411 bool GrGLProgramBuilder::checkLinkStatus(GrGLuint programID) { in checkLinkStatus() argument
413 GL_CALL(GetProgramiv(programID, GR_GL_LINK_STATUS, &linked)); in checkLinkStatus()
417 GL_CALL(GetProgramiv(programID, GR_GL_INFO_LOG_LENGTH, &infoLen)); in checkLinkStatus()
423 GL_CALL(GetProgramInfoLog(programID, in checkLinkStatus()
433 void GrGLProgramBuilder::resolveProgramResourceLocations(GrGLuint programID) { in resolveProgramResourceLocations() argument
434 fUniformHandler.getUniformLocations(programID, fGpu->glCaps()); in resolveProgramResourceLocations()
445 programID, in resolveProgramResourceLocations()
452 void GrGLProgramBuilder::cleanupProgram(GrGLuint programID, const SkTDArray<GrGLuint>& shaderIDs) { in cleanupProgram() argument
453 GL_CALL(DeleteProgram(programID)); in cleanupProgram()
462 GrGLProgram* GrGLProgramBuilder::createProgram(GrGLuint programID) { in createProgram() argument
465 programID, in createProgram()