aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLocalMatrixImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-03-23 04:40:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-23 04:40:01 -0700
commitae2f2de1b85e35824aab13f11e082920a33805ad (patch)
tree15e5c60becfa9e9dd7e24cf7a195e65936854756 /src/core/SkLocalMatrixImageFilter.cpp
parent0dfe89248972f701a0a96812ffed801bcc0387b0 (diff)
Switch SkLocalMatrixImageFilter over to new onFilterImage interface
Diffstat (limited to 'src/core/SkLocalMatrixImageFilter.cpp')
-rw-r--r--src/core/SkLocalMatrixImageFilter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/SkLocalMatrixImageFilter.cpp b/src/core/SkLocalMatrixImageFilter.cpp
index 3214d2d93b..f4ecb293ba 100644
--- a/src/core/SkLocalMatrixImageFilter.cpp
+++ b/src/core/SkLocalMatrixImageFilter.cpp
@@ -23,8 +23,9 @@ SkImageFilter* SkLocalMatrixImageFilter::Create(const SkMatrix& localM, SkImageF
}
SkLocalMatrixImageFilter::SkLocalMatrixImageFilter(const SkMatrix& localM, SkImageFilter* input)
- : INHERITED(1, &input), fLocalM(localM)
-{}
+ : INHERITED(1, &input)
+ , fLocalM(localM) {
+}
SkFlattenable* SkLocalMatrixImageFilter::CreateProc(SkReadBuffer& buffer) {
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1);
@@ -38,11 +39,10 @@ void SkLocalMatrixImageFilter::flatten(SkWriteBuffer& buffer) const {
buffer.writeMatrix(fLocalM);
}
-bool SkLocalMatrixImageFilter::onFilterImageDeprecated(Proxy* proxy, const SkBitmap& src,
- const Context& ctx,
- SkBitmap* result, SkIPoint* offset) const {
+SkSpecialImage* SkLocalMatrixImageFilter::onFilterImage(SkSpecialImage* source, const Context& ctx,
+ SkIPoint* offset) const {
Context localCtx(SkMatrix::Concat(ctx.ctm(), fLocalM), ctx.clipBounds(), ctx.cache());
- return this->filterInputDeprecated(0, proxy, src, localCtx, result, offset);
+ return this->filterInput(0, source, localCtx, offset);
}
SkIRect SkLocalMatrixImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& matrix,