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

Side by Side Diff: tests/ImageFilterTest.cpp

Issue 1894573002: Move SkImageFilter over to storing sk_sps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more clean up 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
« include/core/SkImageFilter.h ('K') | « src/effects/SkImageSource.cpp ('k') | no next file » | 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 7
8 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkBitmapDevice.h" 9 #include "SkBitmapDevice.h"
10 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 skiatest::Reporter* fReporter; 83 skiatest::Reporter* fReporter;
84 SkMatrix fExpectedMatrix; 84 SkMatrix fExpectedMatrix;
85 85
86 typedef SkImageFilter INHERITED; 86 typedef SkImageFilter INHERITED;
87 }; 87 };
88 88
89 class FailImageFilter : public SkImageFilter { 89 class FailImageFilter : public SkImageFilter {
90 public: 90 public:
91 FailImageFilter() : SkImageFilter(0, nullptr) { 91 FailImageFilter() : SkImageFilter(nullptr, 0, nullptr) { }
92 }
93 92
94 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, 93 sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source,
95 const Context& ctx, 94 const Context& ctx,
96 SkIPoint* offset) const override { 95 SkIPoint* offset) const override {
97 return nullptr; 96 return nullptr;
98 } 97 }
99 98
100 SK_TO_STRING_OVERRIDE() 99 SK_TO_STRING_OVERRIDE()
101 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter) 100 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter)
102 101
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 1766
1768 test_xfermode_cropped_input(&canvas, reporter); 1767 test_xfermode_cropped_input(&canvas, reporter);
1769 } 1768 }
1770 1769
1771 DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(ImageFilterBlurLargeImage_Gpu, reporter, ctxInfo ) { 1770 DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(ImageFilterBlurLargeImage_Gpu, reporter, ctxInfo ) {
1772 auto surface(SkSurface::MakeRenderTarget(ctxInfo.fGrContext, SkBudgeted::kYe s, 1771 auto surface(SkSurface::MakeRenderTarget(ctxInfo.fGrContext, SkBudgeted::kYe s,
1773 SkImageInfo::MakeN32Premul(100, 100 ))); 1772 SkImageInfo::MakeN32Premul(100, 100 )));
1774 test_large_blur_input(reporter, surface->getCanvas()); 1773 test_large_blur_input(reporter, surface->getCanvas());
1775 } 1774 }
1776 #endif 1775 #endif
OLDNEW
« include/core/SkImageFilter.h ('K') | « src/effects/SkImageSource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698