Lines Matching refs:colorCount
174 static void fuzz_gradient_stops(Fuzz* fuzz, SkScalar* pos, int colorCount) { in fuzz_gradient_stops() argument
176 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
181 for (int i = 0; i < colorCount; ++i) { in fuzz_gradient_stops()
185 pos[colorCount - 1] = 1.0f; in fuzz_gradient_stops()
268 int colorCount; in make_fuzz_shader() local
271 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
272 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
279 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
281 return SkGradientShader::MakeLinear(pts, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()
288 int colorCount; in make_fuzz_shader() local
294 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
295 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
300 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
303 colorCount, tmX, 0, useMatrix ? &matrix : nullptr); in make_fuzz_shader()
309 int colorCount; in make_fuzz_shader() local
315 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
316 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
321 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
324 usePos ? pos : nullptr, colorCount, tmX, 0, in make_fuzz_shader()
330 int colorCount; in make_fuzz_shader() local
335 fuzz->nextRange(&colorCount, 2, kMaxColors); in make_fuzz_shader()
336 fuzz->nextN(colors, colorCount); in make_fuzz_shader()
341 fuzz_gradient_stops(fuzz, pos, colorCount); in make_fuzz_shader()
343 return SkGradientShader::MakeSweep(cx, cy, colors, usePos ? pos : nullptr, colorCount, in make_fuzz_shader()