Lines Matching refs:colors
13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() argument
15 return SkGradientShader::CreateLinear(pts, colors, NULL, count, in shader_linear()
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() argument
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, in shader_radial()
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() argument
29 colors, NULL, count, in shader_conical()
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() argument
35 colors, NULL, count); in shader_sweep()
55 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw() local
56 const int colorCount = SK_ARRAY_COUNT(colors); in onDraw()
62 paint.setShader(fProc(colors, colorCount, size))->unref(); in onDraw()