Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: include/effects/SkRectShaderImageFilter.h

Issue 1575233004: Delete SkRectShaderImageFilter (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/effects.gypi ('k') | src/effects/SkRectShaderImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkRectShaderImageFilter.h
diff --git a/include/effects/SkRectShaderImageFilter.h b/include/effects/SkRectShaderImageFilter.h
deleted file mode 100644
index 9ac116ae5fe69f5414e84c0d9394e7ddc97af9b7..0000000000000000000000000000000000000000
--- 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
« no previous file with comments | « gyp/effects.gypi ('k') | src/effects/SkRectShaderImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698