OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "Fuzz.h" | 7 #include "Fuzz.h" |
8 #include "Sk1DPathEffect.h" | 8 #include "Sk1DPathEffect.h" |
9 #include "Sk2DPathEffect.h" | 9 #include "Sk2DPathEffect.h" |
10 #include "SkAlphaThresholdFilter.h" | 10 #include "SkAlphaThresholdFilter.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 : nullptr; | 573 : nullptr; |
574 break; | 574 break; |
575 } | 575 } |
576 case BLUR: | 576 case BLUR: |
577 filter = SkBlurImageFilter::Make(make_scalar(true), | 577 filter = SkBlurImageFilter::Make(make_scalar(true), |
578 make_scalar(true), | 578 make_scalar(true), |
579 make_image_filter()); | 579 make_image_filter()); |
580 break; | 580 break; |
581 case MAGNIFIER: | 581 case MAGNIFIER: |
582 filter = SkMagnifierImageFilter::Make(make_rect(), | 582 filter = SkMagnifierImageFilter::Make(make_rect(), |
583 make_scalar(true), | 583 make_scalar(true), |
584 make_image_filter()); | 584 make_image_filter()); |
585 break; | 585 break; |
586 case DOWN_SAMPLE: | 586 case DOWN_SAMPLE: |
587 filter = SkDownSampleImageFilter::Make(make_scalar(), make_image_filter(
)); | 587 filter = SkDownSampleImageFilter::Make(make_scalar(), make_image_filter(
)); |
588 break; | 588 break; |
589 case XFERMODE: | 589 case XFERMODE: |
590 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), | 590 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), |
591 make_image_filter(), | 591 make_image_filter(), |
592 make_image_filter(), | 592 make_image_filter(), |
593 nullptr); | 593 nullptr); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 DEF_FUZZ(SerializedImageFilter, f) { | 790 DEF_FUZZ(SerializedImageFilter, f) { |
791 fuzz = f; | 791 fuzz = f; |
792 SkImageFilter* filter = make_serialized_image_filter(); | 792 SkImageFilter* filter = make_serialized_image_filter(); |
793 | 793 |
794 SkPaint paint; | 794 SkPaint paint; |
795 SkSafeUnref(paint.setImageFilter(filter)); | 795 SkSafeUnref(paint.setImageFilter(filter)); |
796 SkBitmap bitmap; | 796 SkBitmap bitmap; |
797 SkCanvas canvas(bitmap); | 797 SkCanvas canvas(bitmap); |
798 drawClippedBitmap(&canvas, 0, 0, paint); | 798 drawClippedBitmap(&canvas, 0, 0, paint); |
799 } | 799 } |
OLD | NEW |