diff options
author | reed <reed@google.com> | 2016-06-25 14:30:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-25 14:30:44 -0700 |
commit | 81700f69b0021025c6b966aae11c76bb1b08e3b2 (patch) | |
tree | 376303c17cd4796690cafc624551a9036d596ea4 /include/effects | |
parent | a84d6606f5f53b8e1a42d55676e4f1ea47be5575 (diff) |
remove DownSample imagefilter
was just created early on as a test filter
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2094083002
TBR=
Review-Url: https://codereview.chromium.org/2094083002
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkTestImageFilters.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/include/effects/SkTestImageFilters.h b/include/effects/SkTestImageFilters.h deleted file mode 100644 index 4aa30083dd..0000000000 --- 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 |