DescriptionAvoid matrix inverse in SkBitmapProcInfo::init for translate-only cases
If fInvMatrix doesn't have a scale component, the
really-close-to-no-scale logic is a no-op. We can avoid an inverse op
by hoisting the check out of just_trans_clamp/just_trans_general.
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2472003004
Committed: https://skia.googlesource.com/skia/+/544da7a7c399ab9775d6dbb441a5a695569f9939
Patch Set 1 #Patch Set 2 : simplified matrix type test #Messages
Total messages: 12 (8 generated)
|