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

Unified Diff: include/effects/SkTileImageFilter.h

Issue 1810693003: Switch SkTileImageFilter over to new onFilterImage interface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 8 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 | « no previous file | src/effects/SkTileImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkTileImageFilter.h
diff --git a/include/effects/SkTileImageFilter.h b/include/effects/SkTileImageFilter.h
index ad334a3cc1e7f12f39a7fd2b5b369cf7533d2d10..1fccac68b4892b5873b28c7c7a1047b4b38f858f 100644
--- a/include/effects/SkTileImageFilter.h
+++ b/include/effects/SkTileImageFilter.h
@@ -11,8 +11,6 @@
#include "SkImageFilter.h"
class SK_API SkTileImageFilter : public SkImageFilter {
- typedef SkImageFilter INHERITED;
-
public:
/** Create a tile image filter
@param src Defines the pixels to tile
@@ -21,8 +19,6 @@ public:
*/
static SkImageFilter* Create(const SkRect& src, const SkRect& dst, SkImageFilter* input);
- bool onFilterImageDeprecated(Proxy* proxy, const SkBitmap& src, const Context& ctx,
- SkBitmap* dst, SkIPoint* offset) const override;
SkIRect onFilterBounds(const SkIRect& src, const SkMatrix&, MapDirection) const override;
SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const override;
SkRect computeFastBounds(const SkRect& src) const override;
@@ -33,12 +29,17 @@ public:
protected:
void flatten(SkWriteBuffer& buffer) const override;
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&,
+ SkIPoint* offset) const override;
+
private:
SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input)
: INHERITED(1, &input, NULL), fSrcRect(srcRect), fDstRect(dstRect) {}
SkRect fSrcRect;
SkRect fDstRect;
+
+ typedef SkImageFilter INHERITED;
};
#endif
« no previous file with comments | « no previous file | src/effects/SkTileImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698