Lines Matching defs:shader
81 // The image shader pattern cell will be drawn into a separate device
85 // Map clip bounds to shader space to ensure the device is large enough
96 // otherwise the bitmap gets clipped out and the shader is empty and awful.
262 // * use the result as a bitmap shader
264 SkShader* shader,
269 // handle compose shader by pulling things up to a layer, drawing with
270 // the first shader, applying the xfer mode and drawing again with the
271 // second shader, then applying the layer to the original drawing.
273 SkMatrix shaderTransform = as_SB(shader)->getLocalMatrix();
277 // shader space for adjustments (to match
303 p.setShader(sk_ref_sp(shader));
322 static SkColor4f adjust_color(SkShader* shader, SkColor4f paintColor) {
323 if (SkImage* img = shader->isAImage(nullptr, (SkTileMode*)nullptr)) {
332 SkShader* shader,
336 SkASSERT(shader);
338 if (SkShader::kNone_GradientType != shader->asAGradient(nullptr)) {
339 return SkPDFGradientShader::Make(doc, shader, canvasTransform, surfaceBBox);
346 SkASSERT(shader->asAGradient(nullptr) == SkShader::kNone_GradientType) ;
348 paintColor = adjust_color(shader, paintColor);
351 if (SkImage* skimg = shader->isAImage(&shaderTransform, imageTileModes)) {
374 // Don't bother to de-dup fallback shader.
375 return make_fallback_shader(doc, shader, canvasTransform, surfaceBBox, paintColor);