Lines Matching refs:colorCount

157 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) {  in fuzz_gradient_stops()  argument
159 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
164 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
168 pos[colorCount - 1] = 1.0f; in fuzz_gradient_stops()
241 int colorCount; in make_fuzz_shader() local
244 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
245 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
252 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
254 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()
261 int colorCount; in make_fuzz_shader() local
267 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
268 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
273 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
276 colorCount, tmX, 0, useMatrix ? &matrix : nullptr); in make_fuzz_shader()
282 int colorCount; in make_fuzz_shader() local
288 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
289 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
294 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
297 usePos ? pos : nullptr, colorCount, tmX, 0, in make_fuzz_shader()
303 int colorCount; in make_fuzz_shader() local
308 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
309 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
314 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
316 return SkGradientShader::MakeSweep(cx, cy, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()