Home | History | Annotate | Download | only in gm

Lines Matching defs:size

13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
14 SkPoint pts[] = { { 0, 0 }, { size.width(), size.height() } };
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
20 SkPoint center = { size.width()/2, size.height()/2 };
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count,
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) {
26 SkPoint center = { size.width()/2, size.height()/2 };
27 return SkGradientShader::CreateTwoPointConical(center, size.width()/64,
28 center, size.width()/2,
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
34 return SkGradientShader::CreateSweep(size.width()/2, size.height()/2,
62 SkSize size = SkSize::Make(r.width(), r.height());
65 paint.setShader(fProc(colors, colorCount, size))->unref();