aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkBicubicImageFilter.h
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2014-06-25 14:39:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-25 14:39:06 -0700
commit7bf106847304840526a3e722b5ff5ce7322a2826 (patch)
tree281f0b6c33d80f62e48acccb5e40cd92a1bd9023 /include/effects/SkBicubicImageFilter.h
parentf372321de3d4183de5b9ca436e677e471e358f31 (diff)
Remove SkBicubicImageFilter, and all related tests.
Now that we have SkResizeImageFilter, and the bicubic resizing is part of skia proper, there's no need for a specialized image filter. BUG=skia: R=bsalomon@google.com Author: senorblanco@chromium.org Review URL: https://codereview.chromium.org/357793002
Diffstat (limited to 'include/effects/SkBicubicImageFilter.h')
-rw-r--r--include/effects/SkBicubicImageFilter.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/include/effects/SkBicubicImageFilter.h b/include/effects/SkBicubicImageFilter.h
deleted file mode 100644
index 7c1e92344a..0000000000
--- a/include/effects/SkBicubicImageFilter.h
+++ /dev/null
@@ -1,56 +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 SkBicubicImageFilter_DEFINED
-#define SkBicubicImageFilter_DEFINED
-
-#include "SkImageFilter.h"
-#include "SkScalar.h"
-#include "SkSize.h"
-#include "SkPoint.h"
-
-/*! \class SkBicubicImageFilter
- Bicubic resampling image filter. This filter does a 16-tap bicubic
- filter using the given matrix.
- */
-
-class SK_API SkBicubicImageFilter : public SkImageFilter {
-public:
- virtual ~SkBicubicImageFilter();
-
- static SkBicubicImageFilter* CreateMitchell(const SkSize& scale, SkImageFilter* input = NULL);
-
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBicubicImageFilter)
-
-protected:
- /** Construct a (scaling-only) bicubic resampling image filter.
- @param scale How much to scale the image.
- @param coefficients The 16 coefficients of the bicubic matrix.
- @param input The input image filter. If NULL, the src bitmap
- passed to filterImage() is used instead.
- */
- SkBicubicImageFilter(const SkSize& scale, const SkScalar coefficients[16],
- SkImageFilter* input = NULL);
- SkBicubicImageFilter(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;
-
-#if SK_SUPPORT_GPU
- virtual bool canFilterImageGPU() const SK_OVERRIDE { return true; }
- virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
- SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE;
-#endif
-
-private:
- SkSize fScale;
- SkScalar fCoefficients[16];
- typedef SkImageFilter INHERITED;
-};
-
-#endif