diff options
author | ajuma <ajuma@chromium.org> | 2016-01-12 14:17:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-12 14:17:30 -0800 |
commit | 1554ec0689f3072edac22b6c1afa096bfc4225e4 (patch) | |
tree | 41a3cf7f97b317253c5850dc26241b63986e26f7 /include | |
parent | 7f9b2e4a45775e8cdd3f98260a66c0c6e1840550 (diff) |
Delete SkRectShaderImageFilter
This is no longer used (as of http://crrev.com/368929).
BUG=skia:4780
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1575233004
Review URL: https://codereview.chromium.org/1575233004
Diffstat (limited to 'include')
-rw-r--r-- | include/effects/SkRectShaderImageFilter.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/include/effects/SkRectShaderImageFilter.h b/include/effects/SkRectShaderImageFilter.h deleted file mode 100644 index 9ac116ae5f..0000000000 --- a/include/effects/SkRectShaderImageFilter.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2013 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkRectShaderImageFilter_DEFINED -#define SkRectShaderImageFilter_DEFINED - -#include "SkImageFilter.h" -#include "SkRect.h" - -class SkShader; - -class SK_API SkRectShaderImageFilter : public SkImageFilter { -public: - /** Create a new image filter which fills the given rectangle with pixels - * produced by the given SkShader. If no rectangle is specified, an output - * is produced with the same bounds as the input primitive (even though - * the input primitive's pixels are not used for processing). - * @param s Shader to call for processing. Cannot be NULL. Will be - * ref'ed by the new image filter. - * @param rect Rectangle of output pixels in which to apply the shader. - * If NULL or a given crop edge is not specified, the source - * primitive's bounds are used instead. - */ - SK_ATTR_DEPRECATED("use Create(SkShader*, const CropRect*)") - static SkImageFilter* Create(SkShader* s, const SkRect& rect); - static SkImageFilter* Create(SkShader* s, const CropRect* rect = NULL); - - bool canComputeFastBounds() const override; - - SK_TO_STRING_OVERRIDE() - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkRectShaderImageFilter) - -protected: - virtual ~SkRectShaderImageFilter(); - - void flatten(SkWriteBuffer&) const override; - bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, SkBitmap* result, - SkIPoint* loc) const override; - -private: - SkRectShaderImageFilter(SkShader* s, const CropRect* rect); - - SkShader* fShader; - - typedef SkImageFilter INHERITED; -}; - -#endif |