[skif] Consolidate integer translate+subset into resolve()

Updates resolve() to return a SkSpecialImage + SkIPoint instead of a
more opaque FilterResult, and moves the subsetting logic that was
reused between applyCrop and imageAndOffset (modulo return types) into
resolve().

Improves resolve's subsetting of the special image when there's an
integer translation matrix to make sure the subset is within the
special image's subset.

Bug: oss-fuzz:53082
Change-Id: If176cfe375b2910d00efe44a1bc02e9c3580905f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/603404
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
2 files changed