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

Side by Side Diff: samplecode/SampleFilterFuzz.cpp

Issue 1864843002: Update MagnifierImageFilter to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 filter = cf ? SkColorFilterImageFilter::Make(std::move(cf), make_image_f ilter()) 575 filter = cf ? SkColorFilterImageFilter::Make(std::move(cf), make_image_f ilter())
576 : nullptr; 576 : nullptr;
577 break; 577 break;
578 } 578 }
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 = SkMagnifierImageFilter::Make(make_rect(),
586 make_scalar (true))); 586 make_scalar(true),
587 make_image_filter());
587 break; 588 break;
588 case DOWN_SAMPLE: 589 case DOWN_SAMPLE:
589 filter = sk_sp<SkImageFilter>(SkDownSampleImageFilter::Create(make_scala r())); 590 filter = sk_sp<SkImageFilter>(SkDownSampleImageFilter::Create(make_scala r()));
590 break; 591 break;
591 case XFERMODE: 592 case XFERMODE:
592 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()), 593 filter = SkXfermodeImageFilter::Make(SkXfermode::Make(make_xfermode()),
593 make_image_filter(), 594 make_image_filter(),
594 make_image_filter(), 595 make_image_filter(),
595 nullptr); 596 nullptr);
596 break; 597 break;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 } 851 }
851 852
852 private: 853 private:
853 typedef SkView INHERITED; 854 typedef SkView INHERITED;
854 }; 855 };
855 856
856 ////////////////////////////////////////////////////////////////////////////// 857 //////////////////////////////////////////////////////////////////////////////
857 858
858 static SkView* MyFactory() { return new ImageFilterFuzzView; } 859 static SkView* MyFactory() { return new ImageFilterFuzzView; }
859 static SkViewRegister reg(MyFactory); 860 static SkViewRegister reg(MyFactory);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698