Lines Matching refs:glsl
84 bool GrGLProgramBuilder::compileAndAttachShaders(const char* glsl, in compileAndAttachShaders() argument
95 glsl, in compileAndAttachShaders()
118 SkSL::String glsl; in compileAndAttachShaders() local
124 &glsl); in compileAndAttachShaders()
126 return this->compileAndAttachShaders(glsl.c_str(), in compileAndAttachShaders()
127 glsl.size(), in compileAndAttachShaders()
193 GrGLSLCacheEntry(const SkSL::Program::Inputs& inputs, const GrGLSLSet& glsl) in GrGLSLCacheEntry()
197 if (glsl.fGLSL[i].size() > 0) { in GrGLSLCacheEntry()
199 offset += glsl.fGLSL[i].size() + 1; in GrGLSLCacheEntry()
217 const GrGLSLSet& glsl) { in storeShaderInCache() argument
243 size_t dataLength = sizeof(GrGLSLCacheEntry) + glsl.getCacheSize(); in storeShaderInCache()
246 GrGLSLCacheEntry entry(inputs, glsl); in storeShaderInCache()
250 if (glsl.fGLSL[i].size() > 0) { in storeShaderInCache()
251 memcpy(data.get() + offset, glsl.fGLSL[i].data(), glsl.fGLSL[i].size() + 1); in storeShaderInCache()
252 offset += glsl.fGLSL[i].size() + 1; in storeShaderInCache()
294 GrGLSLSet glsl; in finalize() local
326 glsl.fGLSL[i] = SkSL::String(entry->get(i)); in finalize()
333 if (glsl.fs().empty()) { in finalize()
344 &glsl.fs()); in finalize()
356 if (!this->compileAndAttachShaders(glsl.fs().c_str(), glsl.fs().size(), programID, in finalize()
363 if (glsl.vs().empty()) { in finalize()
371 &glsl.vs()); in finalize()
377 if (!this->compileAndAttachShaders(glsl.vs().c_str(), glsl.vs().size(), programID, in finalize()
391 if (glsl.gs().empty()) { in finalize()
400 &glsl.gs()); in finalize()
406 if (!this->compileAndAttachShaders(glsl.gs().c_str(), glsl.gs().size(), programID, in finalize()
449 this->storeShaderInCache(inputs, programID, glsl); in finalize()