Lines Matching refs:SkShader
19 static sk_sp<SkShader> make_shader(SkBlendMode mode) { in make_shader()
27 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_shader()
33 auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_shader()
35 return SkShader::MakeComposeShader(std::move(shaderA), std::move(shaderB), mode); in make_shader()
62 sk_sp<SkShader> fShader;
83 sk_sp<SkShader> shaders[] = { in onDraw()
143 static sk_sp<SkShader> make_linear_gradient_shader(int length) { in make_linear_gradient_shader()
150 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_linear_gradient_shader()
164 fColorBitmapShader = SkShader::MakeBitmapShader(fColorBitmap, SkShader::kRepeat_TileMode, in onOnceBeforeDraw()
165 SkShader::kRepeat_TileMode, &s); in onOnceBeforeDraw()
166 fAlpha8BitmapShader = SkShader::MakeBitmapShader(fAlpha8Bitmap, SkShader::kRepeat_TileMode, in onOnceBeforeDraw()
167 SkShader::kRepeat_TileMode, &s); in onOnceBeforeDraw()
182 sk_sp<SkShader> shaders[] = { in onDraw()
184 SkShader::MakeComposeShader(fLinearGradientShader, fColorBitmapShader, mode), in onDraw()
186 SkShader::MakeComposeShader(fLinearGradientShader, fAlpha8BitmapShader, mode), in onDraw()
219 sk_sp<SkShader> fColorBitmapShader;
220 sk_sp<SkShader> fAlpha8BitmapShader;
221 sk_sp<SkShader> fLinearGradientShader;
256 SkShader::MakeComposeShader(skMaskImage->makeShader(), skSrc->makeShader(),
263 static sk_sp<SkShader> make_src_shader(SkScalar size) { in make_src_shader()
266 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_src_shader()
269 static sk_sp<SkShader> make_dst_shader(SkScalar size) { in make_dst_shader()
272 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_dst_shader()
277 static void draw_cell(SkCanvas* canvas, sk_sp<SkShader> src, sk_sp<SkShader> dst, in draw_cell()
296 static void draw_composed(SkCanvas* canvas, sk_sp<SkShader> src, sk_sp<SkShader> dst, in draw_composed()
300 p.setShader(SkShader::MakeCompose(dst, src, mode)); in draw_composed()
304 static void draw_pair(SkCanvas* canvas, sk_sp<SkShader> src, sk_sp<SkShader> dst, in draw_pair()