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