Lines Matching refs:caches
58 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { in bindTexture() argument
59 caches->bindTexture(texture->id); in bindTexture()
128 typedef void (*describeProc)(Caches* caches, ProgramDescription& description,
139 typedef void (*setupProgramProc)(Caches* caches, const mat4& modelViewMatrix,
150 void SkiaShader::describe(Caches* caches, ProgramDescription& description, in describe() argument
152 gDescribeProc[getType(shader)](caches, description, extensions, shader); in describe()
155 void SkiaShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() argument
158 gSetupProgramProc[getType(shader)](caches, modelViewMatrix, textureUnit, extensions, shader); in setupProgram()
170 void SkiaLayerShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() argument
178 caches->activeTexture(textureSlot); in setupProgram()
193 Program* program = caches->currentProgram; in setupProgram()
212 static bool bitmapShaderHelper(Caches* caches, ProgramDescription* description, in bitmapShaderHelper() argument
216 Texture* texture = caches->textureCache.get(&bitmap); in bitmapShaderHelper()
253 void SkiaBitmapShader::describe(Caches* caches, ProgramDescription& description, in describe() argument
260 bitmapShaderHelper(caches, &description, NULL, extensions, bitmap, xy); in describe()
263 void SkiaBitmapShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() argument
275 if (!bitmapShaderHelper(caches, NULL, &shaderInfo, extensions, bitmap, xy)) { in setupProgram()
279 Program* program = caches->currentProgram; in setupProgram()
289 bindTexture(caches, texture, shaderInfo.wrapS, shaderInfo.wrapT); in setupProgram()
366 void SkiaGradientShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() argument
383 Program* program = caches->currentProgram; in setupProgram()
394 caches->activeTexture(textureSlot); in setupProgram()
399 Texture* texture = caches->gradientCache.get(gradInfo.fColors, gradInfo.fColorOffsets, in setupProgram()
403 … bindTexture(caches, texture, gTileModes[gradInfo.fTileMode], gTileModes[gradInfo.fTileMode]); in setupProgram()
410 caches->dither.setupProgram(program, textureUnit); in setupProgram()
437 void SkiaComposeShader::describe(Caches* caches, ProgramDescription& description, in describe() argument
443 SkiaShader::describe(caches, description, extensions, *rec.fShaderA); in describe()
444 SkiaShader::describe(caches, description, extensions, *rec.fShaderB); in describe()
454 void SkiaComposeShader::setupProgram(Caches* caches, const mat4& modelViewMatrix, in setupProgram() argument
468 SkiaShader::setupProgram(caches, transform, textureUnit, extensions, *rec.fShaderA); in setupProgram()
469 SkiaShader::setupProgram(caches, transform, textureUnit, extensions, *rec.fShaderB); in setupProgram()