Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index abac24cf3fa145044f11f32e307bde1fbfb28a2b..3b8d44d06ebcee77e301dc5bb7054dd614428d3b 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -331,7 +331,7 @@ bool SkImageFilter::onFilterImage(Proxy*, const SkBitmap&, const Context&, |
} |
bool SkImageFilter::canFilterImageGPU() const { |
- return this->asFragmentProcessor(nullptr, nullptr, SkMatrix::I(), SkIRect()); |
+ return this->asFragmentProcessor(nullptr, nullptr, SkMatrix::I(), SkIRect(), nullptr); |
} |
bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx, |
@@ -374,7 +374,8 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont |
SkMatrix matrix(ctx.ctm()); |
matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
GrPaint paint; |
- if (this->asFragmentProcessor(&fp, srcTexture, matrix, bounds)) { |
+ |
+ if (this->asFragmentProcessor(&fp, srcTexture, matrix, bounds, dst->asRenderTarget())) { |
SkASSERT(fp); |
paint.addColorFragmentProcessor(fp)->unref(); |
@@ -456,7 +457,7 @@ bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
} |
bool SkImageFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*, |
- const SkMatrix&, const SkIRect&) const { |
+ const SkMatrix&, const SkIRect&, GrRenderTarget* dst) const { |
return false; |
} |