diff options
author | Herb Derby <herb@google.com> | 2017-11-09 22:39:51 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-09 22:39:57 +0000 |
commit | 66918078bb373e28e381cab51409e789fe521315 (patch) | |
tree | d557529bf5d905bfa707ab29c17284365af454c9 /src/core/SkGaussFilter.h | |
parent | 77e487dfc005be66346ebf3e33d3ec394de4cc36 (diff) |
Revert "Gauss filter calculation"
This reverts commit 53ec7dc7cb523f220a9f5cd713b241c706779c81.
Reason for revert: Segv on very specific machines.
Original change's description:
> Gauss filter calculation
>
> Change-Id: I921ef815d4f788c312aa729f353b6ea154140555
> Reviewed-on: https://skia-review.googlesource.com/67723
> Commit-Queue: Herb Derby <herb@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>
TBR=herb@google.com,robertphillips@google.com
Change-Id: I15164809d081dee0076e815b40fbfdbc6374cfba
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/69641
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/core/SkGaussFilter.h')
-rw-r--r-- | src/core/SkGaussFilter.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/core/SkGaussFilter.h b/src/core/SkGaussFilter.h deleted file mode 100644 index 9af45c875b..0000000000 --- a/src/core/SkGaussFilter.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2017 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkGaussFilter_DEFINED -#define SkGaussFilter_DEFINED - -#include <cstdint> - -// Define gaussian filters for values of sigma < 2. Produce values good to 1 part in 1,000,000. -// Gaussian produces values as defined in the SVG 1.1 spec: -// https://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement -// Bessel produces values as defined in "Scale-Space for Discrete Signals" by Tony Lindeberg -class SkGaussFilter { -public: - enum class Type : bool { - Gaussian, - Bessel - }; - - // Type selects which method is used to calculate the gaussian factors. - SkGaussFilter(double sigma, Type type); - - int radius() const { return fN - 1; } - int width() const { return 2 * this->radius() + 1; } - - // Take an array of values where the gaussian factors will be placed. Return the number of - // values filled. - int filterDouble(double values[5]) const; - -private: - double fBasis[5]; - int fN; -}; - -#endif // SkGaussFilter_DEFINED - - |