diff options
author | 2015-10-06 14:05:32 -0700 | |
---|---|---|
committer | 2015-10-06 14:05:32 -0700 | |
commit | 5ea95df02de9cd774d0b84d1341599bbd9c0d8db (patch) | |
tree | 55b4fcd9836726d1cea4fe8fe034d8486c72f49f /include/effects/SkTileImageFilter.h | |
parent | 95376a0dde3cdf414eb97a20cef3af19ed7e0151 (diff) |
Revert "Revert of factories should return baseclass, allowing the impl to specialize (patchset #4 id:60001 of https://codereview.chromium.org/1390523005/ )"
This reverts commit 95376a0dde3cdf414eb97a20cef3af19ed7e0151.
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1389083002
Diffstat (limited to 'include/effects/SkTileImageFilter.h')
-rw-r--r-- | include/effects/SkTileImageFilter.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/effects/SkTileImageFilter.h b/include/effects/SkTileImageFilter.h index 4dccf852be..a2a1bb0fe1 100644 --- a/include/effects/SkTileImageFilter.h +++ b/include/effects/SkTileImageFilter.h @@ -15,12 +15,11 @@ class SK_API SkTileImageFilter : public SkImageFilter { public: /** Create a tile image filter - @param srcRect Defines the pixels to tile - @param dstRect Defines the pixels where tiles are drawn + @param src Defines the pixels to tile + @param dst Defines the pixels where tiles are drawn @param input Input from which the subregion defined by srcRect will be tiled */ - static SkTileImageFilter* Create(const SkRect& srcRect, const SkRect& dstRect, - SkImageFilter* input); + static SkImageFilter* Create(const SkRect& src, const SkRect& dst, SkImageFilter* input); bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx, SkBitmap* dst, SkIPoint* offset) const override; @@ -32,12 +31,12 @@ public: SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTileImageFilter) protected: - SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) - : INHERITED(1, &input, NULL), fSrcRect(srcRect), fDstRect(dstRect) {} - void flatten(SkWriteBuffer& buffer) const override; private: + SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) + : INHERITED(1, &input, NULL), fSrcRect(srcRect), fDstRect(dstRect) {} + SkRect fSrcRect; SkRect fDstRect; }; |