"SrcRectConstraint controls the behavior at the edge of source
SkRect, provided to drawImageRect() when there is any filtering. If
kStrict is set, then extra code is used to ensure it nevers samples
outside of the src-rect. kStrict_SrcRectConstraint disables the
use of mipmaps."
We were always using kStrict, which disabled mipmaps.
This can be used to fix:
https://github.com/aseprite/aseprite/issues/4317
From SkCanvas::SrcRectConstraint docs:
"SrcRectConstraint controls the behavior at the edge of source SkRect, provided to drawImageRect() when there is any filtering. If kStrict is set, then extra code is used to ensure it nevers samples outside of the src-rect. kStrict_SrcRectConstraint disables the use of mipmaps."
We were always using kStrict, which disabled mipmaps.