Lines Matching refs:depth

85 static sk_sp<SkPicture> make_fuzz_picture(Fuzz*, int depth);
87 static sk_sp<SkColorFilter> make_fuzz_colorfilter(Fuzz* fuzz, int depth) {
88 if (depth <= 0) {
104 sk_sp<SkColorFilter> outer = make_fuzz_colorfilter(fuzz, depth - 1);
108 sk_sp<SkColorFilter> inner = make_fuzz_colorfilter(fuzz, depth - 1);
171 static sk_sp<SkShader> make_fuzz_shader(Fuzz* fuzz, int depth) {
182 if (depth <= 0) {
204 shader1 = make_fuzz_shader(fuzz, depth - 1); // limit recursion.
208 shader1 = make_fuzz_shader(fuzz, depth - 1); // limit recursion.
209 colorFilter = make_fuzz_colorfilter(fuzz, depth - 1);
212 shader1 = make_fuzz_shader(fuzz, depth - 1); // limit recursion.
213 shader2 = make_fuzz_shader(fuzz, depth - 1);
217 auto pic = make_fuzz_picture(fuzz, depth - 1);
346 static sk_sp<SkPathEffect> make_fuzz_patheffect(Fuzz* fuzz, int depth) {
347 if (depth <= 0) {
357 sk_sp<SkPathEffect> first = make_fuzz_patheffect(fuzz, depth - 1);
358 sk_sp<SkPathEffect> second = make_fuzz_patheffect(fuzz, depth - 1);
362 sk_sp<SkPathEffect> first = make_fuzz_patheffect(fuzz, depth - 1);
363 sk_sp<SkPathEffect> second = make_fuzz_patheffect(fuzz, depth - 1);
451 static sk_sp<SkImageFilter> make_fuzz_imageFilter(Fuzz* fuzz, int depth);
453 static sk_sp<SkImageFilter> make_fuzz_lighting_imagefilter(Fuzz* fuzz, int depth) {
454 if (depth <= 0) {
472 input = make_fuzz_imageFilter(fuzz, depth - 1);
478 input = make_fuzz_imageFilter(fuzz, depth - 1);
484 input = make_fuzz_imageFilter(fuzz, depth - 1);
490 input = make_fuzz_imageFilter(fuzz, depth - 1);
496 input = make_fuzz_imageFilter(fuzz, depth - 1);
503 input = make_fuzz_imageFilter(fuzz, depth - 1);
513 static void fuzz_paint(Fuzz* fuzz, SkPaint* paint, int depth);
529 static sk_sp<SkImageFilter> make_fuzz_imageFilter(Fuzz* fuzz, int depth) {
530 if (depth <= 0) {
540 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
554 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
560 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
575 sk_sp<SkImageFilter> background = make_fuzz_imageFilter(fuzz, depth - 1);
576 sk_sp<SkImageFilter> foreground = make_fuzz_imageFilter(fuzz, depth - 1);
586 sk_sp<SkColorFilter> cf = make_fuzz_colorfilter(fuzz, depth - 1);
587 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
598 sk_sp<SkImageFilter> ifo = make_fuzz_imageFilter(fuzz, depth - 1);
599 sk_sp<SkImageFilter> ifi = make_fuzz_imageFilter(fuzz, depth - 1);
613 sk_sp<SkImageFilter> displacement = make_fuzz_imageFilter(fuzz, depth - 1);
614 sk_sp<SkImageFilter> color = make_fuzz_imageFilter(fuzz, depth - 1);
628 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
647 return make_fuzz_lighting_imagefilter(fuzz, depth - 1);
657 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
680 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
686 sk_sp<SkImageFilter> first = make_fuzz_imageFilter(fuzz, depth - 1);
687 sk_sp<SkImageFilter> second = make_fuzz_imageFilter(fuzz, depth - 1);
703 ifs[i] = make_fuzz_imageFilter(fuzz, depth - 1);
722 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
735 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
748 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
754 fuzz_paint(fuzz, &paint, depth - 1);
764 sk_sp<SkPicture> picture = make_fuzz_picture(fuzz, depth - 1);
770 sk_sp<SkPicture> picture = make_fuzz_picture(fuzz, depth - 1);
776 sk_sp<SkImageFilter> input = make_fuzz_imageFilter(fuzz, depth - 1);
788 sk_sp<SkImageFilter> bg = make_fuzz_imageFilter(fuzz, depth - 1);
789 sk_sp<SkImageFilter> fg = make_fuzz_imageFilter(fuzz, depth - 1);
794 sk_sp<SkShader> shader = make_fuzz_shader(fuzz, depth - 1);
833 static void fuzz_paint(Fuzz* fuzz, SkPaint* paint, int depth) {
834 if (!fuzz || !paint || depth <= 0) {
844 paint->setShader( make_fuzz_shader(fuzz, depth - 1));
845 paint->setPathEffect( make_fuzz_patheffect(fuzz, depth - 1));
847 paint->setImageFilter( make_fuzz_imageFilter(fuzz, depth - 1));
848 paint->setColorFilter( make_fuzz_colorfilter(fuzz, depth - 1));
1009 static void fuzz_canvas(Fuzz* fuzz, SkCanvas* canvas, int depth = 9) {
1010 if (!fuzz || !canvas || depth <= 0) {
1034 fuzz_paint(fuzz, &paint, depth - 1);
1045 fuzz_paint(fuzz, &paint, depth - 1);
1072 fuzz_paint(fuzz, &paint, depth - 1);
1077 imageFilter = make_fuzz_imageFilter(fuzz, depth - 1);
1181 fuzz_paint(fuzz, &paint, depth - 1);
1185 fuzz_paint(fuzz, &paint, depth - 1);
1198 fuzz_paint(fuzz, &paint, depth - 1);
1208 fuzz_paint(fuzz, &paint, depth - 1);
1215 fuzz_paint(fuzz, &paint, depth - 1);
1226 fuzz_paint(fuzz, &paint, depth - 1);
1233 fuzz_paint(fuzz, &paint, depth - 1);
1243 fuzz_paint(fuzz, &paint, depth - 1);
1252 fuzz_paint(fuzz, &paint, depth - 1);
1264 fuzz_paint(fuzz, &paint, depth - 1);
1277 fuzz_paint(fuzz, &paint, depth - 1);
1293 fuzz_paint(fuzz, &paint, depth - 1);
1314 fuzz_paint(fuzz, &paint, depth - 1);
1328 fuzz_paint(fuzz, &paint, depth - 1);
1360 fuzz_paint(fuzz, &paint, depth - 1);
1371 fuzz_paint(fuzz, &paint, depth - 1);
1376 auto pic = make_fuzz_picture(fuzz, depth - 1);
1382 fuzz_paint(fuzz, &paint, depth - 1);
1439 fuzz_paint(fuzz, &paint, depth - 1);
1446 fuzz_paint(fuzz, &paint, depth - 1);
1453 fuzz_paint(fuzz, &paint, depth - 1);
1461 fuzz_paint(fuzz, &paint, depth - 1);
1470 fuzz_paint(fuzz, &paint, depth - 1);
1478 fuzz_paint(fuzz, &paint, depth - 1);
1487 fuzz_paint(fuzz, &paint, depth - 1);
1511 static sk_sp<SkPicture> make_fuzz_picture(Fuzz* fuzz, int depth) {
1515 fuzz_canvas(fuzz, pictureRecorder.beginRecording(w, h), depth - 1);