Make SkComposeImageFilter comply with SkImageFilter::filterBounds calling convention
In kForward mode the 'inputRect' parameter is supposed to be null Bug: 959103 Change-Id: I2fceace384cdda3988e07dcb5d975750ba28bd39 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/212187 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
e772c59d94
commit
25aac5c196
@ -68,7 +68,8 @@ SkIRect SkComposeImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix&
|
||||
SkImageFilter* inner = this->getInput(1);
|
||||
|
||||
const SkIRect innerRect = inner->filterBounds(src, ctm, dir, inputRect);
|
||||
return outer->filterBounds(innerRect, ctm, dir, &innerRect);
|
||||
return outer->filterBounds(innerRect, ctm, dir,
|
||||
kReverse_MapDirection == dir ? &innerRect : nullptr);
|
||||
}
|
||||
|
||||
sk_sp<SkFlattenable> SkComposeImageFilter::CreateProc(SkReadBuffer& buffer) {
|
||||
|
Loading…
Reference in New Issue
Block a user