From 120784394c160d009bc3aa88dd217c13c105a6ca Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 17 May 2018 11:17:39 -0400 Subject: Fix srcBounds computation in SkMatrixConvolutionImageFilter Note that this does change the behavior of the cropRect for the repeated case. The cropRect now only acts as a hard clip on the output. BUG= skia:7766 Change-Id: I1d66678bc797cd4835701cd20c36e68b22ac880a Reviewed-on: https://skia-review.googlesource.com/127338 Reviewed-by: Herb Derby Commit-Queue: Robert Phillips --- tests/CanvasTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/CanvasTest.cpp') diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index d61d195982..aee1d405be 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -846,7 +846,8 @@ protected: return nullptr; } sk_sp onMakeColorSpace(SkColorSpaceXformer*) const override { return nullptr; } - SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, MapDirection) const override { + SkIRect onFilterNodeBounds(const SkIRect&, const SkMatrix&, + MapDirection, const SkIRect* inputRect) const override { return SkIRect::MakeEmpty(); } -- cgit v1.2.3