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

Unified Diff: include/effects/SkTestImageFilters.h

Issue 2094083002: remove DownSample imagefilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/effects.gypi ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkTestImageFilters.h
diff --git a/include/effects/SkTestImageFilters.h b/include/effects/SkTestImageFilters.h
deleted file mode 100644
index 4aa30083ddaef8dd631ca147697bccdc70c4f144..0000000000000000000000000000000000000000
--- a/include/effects/SkTestImageFilters.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef _SkTestImageFilters_h
-#define _SkTestImageFilters_h
-
-#include "SkImageFilter.h"
-#include "SkPoint.h"
-
-// Fun mode that scales down (only) and then scales back up to look pixelated
-class SK_API SkDownSampleImageFilter : public SkImageFilter {
-public:
- static sk_sp<SkImageFilter> Make(SkScalar scale, sk_sp<SkImageFilter> input);
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDownSampleImageFilter)
-
-#ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
- static SkImageFilter* Create(SkScalar scale, SkImageFilter* input = nullptr) {
- return Make(scale, sk_ref_sp<SkImageFilter>(input)).release();
- }
-#endif
-
-protected:
- void flatten(SkWriteBuffer&) const override;
-
- sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
- SkIPoint* offset) const override;
-
-private:
- SkDownSampleImageFilter(SkScalar scale, sk_sp<SkImageFilter> input)
- : INHERITED(&input, 1, nullptr), fScale(scale) {}
-
- SkScalar fScale;
-
- typedef SkImageFilter INHERITED;
-};
-
-#endif
« no previous file with comments | « gyp/effects.gypi ('k') | samplecode/SampleFilterFuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698