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 "SampleCode.h" | 7 #include "SampleCode.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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 case BLUR: | 579 case BLUR: |
580 filter = SkBlurImageFilter::Make(make_scalar(true), | 580 filter = SkBlurImageFilter::Make(make_scalar(true), |
581 make_scalar(true), | 581 make_scalar(true), |
582 make_image_filter()); | 582 make_image_filter()); |
583 break; | 583 break; |
584 case MAGNIFIER: | 584 case MAGNIFIER: |
585 filter = sk_sp<SkImageFilter>(SkMagnifierImageFilter::Create(make_rect()
, | 585 filter = sk_sp<SkImageFilter>(SkMagnifierImageFilter::Create(make_rect()
, |
586 make_scalar
(true))); | 586 make_scalar
(true))); |
587 break; | 587 break; |
588 case DOWN_SAMPLE: | 588 case DOWN_SAMPLE: |
589 filter = sk_sp<SkImageFilter>(SkDownSampleImageFilter::Create(make_scala
r())); | 589 filter = SkDownSampleImageFilter::Make(make_scalar(), make_image_filter(
)); |
590 break; | 590 break; |
591 case XFERMODE: | 591 case XFERMODE: |
592 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), | 592 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), |
593 make_image_filter(), | 593 make_image_filter(), |
594 make_image_filter(), | 594 make_image_filter(), |
595 nullptr); | 595 nullptr); |
596 break; | 596 break; |
597 case OFFSET: | 597 case OFFSET: |
598 filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_im
age_filter()); | 598 filter = SkOffsetImageFilter::Make(make_scalar(), make_scalar(), make_im
age_filter()); |
599 break; | 599 break; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 } | 850 } |
851 | 851 |
852 private: | 852 private: |
853 typedef SkView INHERITED; | 853 typedef SkView INHERITED; |
854 }; | 854 }; |
855 | 855 |
856 ////////////////////////////////////////////////////////////////////////////// | 856 ////////////////////////////////////////////////////////////////////////////// |
857 | 857 |
858 static SkView* MyFactory() { return new ImageFilterFuzzView; } | 858 static SkView* MyFactory() { return new ImageFilterFuzzView; } |
859 static SkViewRegister reg(MyFactory); | 859 static SkViewRegister reg(MyFactory); |
OLD | NEW |