aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-07 15:11:08 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-07 15:11:08 +0000
commitb55444054317d7f836da048241266fdaca442d1d (patch)
tree64937d38f892f9cabdc0fc3c0333aa7566972b1e /include
parent622eda7373796084c554bcb7bbfa38ffb6cbd199 (diff)
Remove SkResizeImageFilter.
Its functionality has been subsumed by SkMatrixImageFilter, and it's no longer used in Blink. BUG=skia: R=bsalomon@google.com Author: senorblanco@chromium.org Review URL: https://codereview.chromium.org/222923005 git-svn-id: http://skia.googlecode.com/svn/trunk@14073 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/effects/SkResizeImageFilter.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/include/effects/SkResizeImageFilter.h b/include/effects/SkResizeImageFilter.h
deleted file mode 100644
index fb55eea42c..0000000000
--- a/include/effects/SkResizeImageFilter.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright 2013 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkResizeImageFilter_DEFINED
-#define SkResizeImageFilter_DEFINED
-
-#include "SkImageFilter.h"
-#include "SkScalar.h"
-#include "SkRect.h"
-#include "SkPoint.h"
-#include "SkPaint.h"
-
-/*! \class SkResizeImageFilter
- Resampling image filter. This filter draws its source image resampled using the given scale
- values.
- */
-
-class SK_API SkResizeImageFilter : public SkImageFilter {
-public:
- virtual ~SkResizeImageFilter();
-
- /** Construct a (scaling-only) resampling image filter.
- * @param sx The x scale parameter to apply when resizing.
- * @param sy The y scale parameter to apply when resizing.
- * @param filterLevel The quality of filtering to apply when scaling.
- * @param input The input image filter. If NULL, the src bitmap
- * passed to filterImage() is used instead.
- */
- static SkResizeImageFilter* Create(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLevel,
- SkImageFilter* input = NULL) {
- return SkNEW_ARGS(SkResizeImageFilter, (sx, sy, filterLevel, input));
- }
-
- virtual void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
-
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkResizeImageFilter)
-
-protected:
- SkResizeImageFilter(SkReadBuffer& buffer);
- virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
-
- virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
- SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
- virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
- SkIRect* dst) const SK_OVERRIDE;
-
-#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
-public:
-#endif
- SkResizeImageFilter(SkScalar sx, SkScalar sy, SkPaint::FilterLevel filterLevel,
- SkImageFilter* input = NULL);
-
-private:
- SkScalar fSx, fSy;
- SkPaint::FilterLevel fFilterLevel;
- typedef SkImageFilter INHERITED;
-};
-
-#endif