Lines Matching defs:shader
45 * Returns true if the shader is guaranteed to produce only a single color.
94 Context(const SkShaderBase& shader, const ContextRec&);
99 * Called sometimes before drawing with this shader. Return the type of
100 * alpha your shader will return. The default implementation returns 0.
115 // Reference to shader, so we don't have to dupe information.
139 * Returns a GrFragmentProcessor that implements the shader for the GPU backend. nullptr is
155 * If the shader can represent its "average" luminance in a single color, return true and
164 // If this returns false, then we draw nothing (do not fall back to shader context)
172 // Returns the total local matrix for this shader:
195 * If this shader can be represented by another shader + a localMatrix, return that shader and
259 * shader for each small draw.
276 inline SkShaderBase* as_SB(SkShader* shader) {
277 return static_cast<SkShaderBase*>(shader);
280 inline const SkShaderBase* as_SB(const SkShader* shader) {
281 return static_cast<const SkShaderBase*>(shader);
284 inline const SkShaderBase* as_SB(const sk_sp<SkShader>& shader) {
285 return static_cast<SkShaderBase*>(shader.get());