DescriptionSkMatrix::preScale() is too conservative
SkMatrix::preScale() always sets the kScale bit, which means something
like
m = SkMatrix::MakeScale(2, 2);
m.preScale(0.5, 0.5);
leaves m.getType() == kScale_Mask, and can throw off the bitmap proc
heuristics.
We could detect the inverse case and clear the scale bit instead.
R=reed@google.com,caryclark@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1531323002
Committed: https://skia.googlesource.com/skia/+/a379da41b7b0408c834db967c0034fd7f611aa83
Patch Set 1 #Patch Set 2 : comment #Patch Set 3 : comment + guard #Messages
Total messages: 14 (5 generated)
|