diff options
author | robertphillips <robertphillips@google.com> | 2016-03-24 07:26:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-24 07:26:32 -0700 |
commit | 2302de920e5434809bd0e85b871a6e002856dfdb (patch) | |
tree | 895491a700be4a79a3da2faa95dd8f553537bdf8 /src/core/SkLocalMatrixImageFilter.cpp | |
parent | 85f9269d9b05c25f3d7b9ac5435f2bf8951e7db3 (diff) |
Switch new SkImageFilter internal methods over to sk_sp
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1826893002
Review URL: https://codereview.chromium.org/1826893002
Diffstat (limited to 'src/core/SkLocalMatrixImageFilter.cpp')
-rw-r--r-- | src/core/SkLocalMatrixImageFilter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/SkLocalMatrixImageFilter.cpp b/src/core/SkLocalMatrixImageFilter.cpp index f4ecb293ba..15f2f0ef00 100644 --- a/src/core/SkLocalMatrixImageFilter.cpp +++ b/src/core/SkLocalMatrixImageFilter.cpp @@ -7,6 +7,7 @@ #include "SkLocalMatrixImageFilter.h" #include "SkReadBuffer.h" +#include "SkSpecialImage.h" #include "SkString.h" SkImageFilter* SkLocalMatrixImageFilter::Create(const SkMatrix& localM, SkImageFilter* input) { @@ -39,8 +40,9 @@ void SkLocalMatrixImageFilter::flatten(SkWriteBuffer& buffer) const { buffer.writeMatrix(fLocalM); } -SkSpecialImage* SkLocalMatrixImageFilter::onFilterImage(SkSpecialImage* source, const Context& ctx, - SkIPoint* offset) const { +sk_sp<SkSpecialImage> SkLocalMatrixImageFilter::onFilterImage(SkSpecialImage* source, + const Context& ctx, + SkIPoint* offset) const { Context localCtx(SkMatrix::Concat(ctx.ctm(), fLocalM), ctx.clipBounds(), ctx.cache()); return this->filterInput(0, source, localCtx, offset); } |