Lines Matching full:shader
83 // Gradient shader matrix helpers
120 bool tryStoreGradient(Caches& caches, const SkShader& shader, const Matrix4 modelViewMatrix,
129 switch (shader.asAGradient(&gradInfo)) {
147 // Do nothing. This shader is unsupported.
153 computeScreenSpaceMatrix(outData->screenSpace, unitMatrix, shader.getLocalMatrix(),
156 // re-query shader to get full color / offset data
161 shader.asAGradient(&gradInfo);
199 bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix,
204 if (!shader.isABitmap(&bitmap, nullptr, xy)) {
231 // so enable custom shader logic to mimic
243 computeScreenSpaceMatrix(outData->textureTransform, SkMatrix::I(), shader.getLocalMatrix(),
262 SkiaShaderType getComposeSubType(const SkShader& shader) {
263 // First check for a gradient shader.
264 switch (shader.asAGradient(nullptr)) {
266 // Not a gradient shader. Fall through to check for other types.
277 // The shader is not a gradient. Check for a bitmap shader.
278 if (shader.isABitmap()) {
289 "failed storing bitmap shader data");
292 "failing storing gradient shader data");
295 bool tryStoreCompose(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix,
299 if (!shader.asACompose(&rec)) return false;
309 computeScreenSpaceMatrix(transform, SkMatrix::I(), shader.getLocalMatrix(), modelViewMatrix);
323 void SkiaShader::store(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix,
326 if (tryStoreGradient(caches, shader, modelViewMatrix, textureUnit, description,
332 if (tryStoreBitmap(caches, shader, modelViewMatrix, textureUnit, description,
338 if (tryStoreCompose(caches, shader, modelViewMatrix, textureUnit, description, outData)) {
343 // Unknown/unsupported type, so explicitly ignore shader