Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: samplecode/SampleFilterFuzz.cpp

Issue 1864583005: Update DownSampleImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix fuzz Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/effects/SkTestImageFilters.h ('k') | src/effects/SkTestImageFilters.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « include/effects/SkTestImageFilters.h ('k') | src/effects/SkTestImageFilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698