DescriptionMatrix convolution bounds fix; affectsTransparentBlack fixes.
Because the convolution kernel is (currently) applied in device space,
there's no way to know which object-space pixels will be touched. So
return false from canComputeFastBounds().
The results from the matrixconvolution GM were actually wrong, since
they were showing edge differences on the clip boundaries, where they
should really only show on crop boundaries. I added a crop to the GM
to keep the results the same (which are useful to test the different
convolution tile modes).
While I was at it, SkImageFilter::affectsTransparentBlack() was
inapplicable on most things except color filters, and its use on
leaf nodes was confusing. So I removed it, and made
SkImageFilter::canComputeFastBounds() virtual instead.
BUG=skia:4630
Committed: https://skia.googlesource.com/skia/+/a544eda5ddea215037b1ada6ba5cfc98f6c8ee15
Patch Set 1 #Patch Set 2 : Make filterPtr a required param for asAColorFilter. #
Total comments: 2
Patch Set 3 : Add a comment to SkRectShaderImageFilter::canComputeFastBounds() #Patch Set 4 : Win32 fix #
Total comments: 2
Patch Set 5 : Memory leak fix #Patch Set 6 : Alternate, more future-proof fix #
Messages
Total messages: 34 (17 generated)
|