Lines Matching defs:shader
161 // A shader's matrix is: CTMM x LocalMatrix x WrappingLocalMatrix. We want to
1161 // PDF treats a shader as a color, so we only set one or the other.
1162 SkShader* shader = paint.getShader();
1163 if (shader) {
1164 // note: we always present the alpha as 1 for the shader, knowing that it will be
1166 if (SkShader::kColor_GradientType == shader->asAGradient(nullptr)) {
1167 // We don't have to set a shader just for a color.
1173 SkAssertResult(shader->asAGradient(&gradientInfo) == SkShader::kColor_GradientType);
1179 // we need to apply the current transform to the shader parameters.
1195 SkPDFIndirectReference pdfShader = SkPDFMakeShader(doc, shader, transform, bounds,
1491 // Alpha-only images need to get their color from the shader, before
1494 // must blend alpha image and shader before applying colorfilter.
1499 // In the case of alpha images with shaders, the shader's coordinate
1513 // The ColorFilter applies to the paint color/shader, not the alpha layer.
1525 // This clip prevents the mask image shader from covering
1596 // TODO(edisonn): A better approach would be to use a bitmap shader