aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLocalMatrixImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-24 07:26:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-24 07:26:32 -0700
commit2302de920e5434809bd0e85b871a6e002856dfdb (patch)
tree895491a700be4a79a3da2faa95dd8f553537bdf8 /src/core/SkLocalMatrixImageFilter.cpp
parent85f9269d9b05c25f3d7b9ac5435f2bf8951e7db3 (diff)
Switch new SkImageFilter internal methods over to sk_sp
Diffstat (limited to 'src/core/SkLocalMatrixImageFilter.cpp')
-rw-r--r--src/core/SkLocalMatrixImageFilter.cpp6
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);
}