commit | a379da41b7b0408c834db967c0034fd7f611aa83 | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Thu Dec 17 14:12:30 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Dec 17 14:12:30 2015 -0800 |
tree | fd58de1e17cbe944982c70817ed105cc17517b96 | |
parent | f5d1f8dcc841516d7ea63c151b13059af40ca76d [diff] |
SkMatrix::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 Review URL: https://codereview.chromium.org/1531323002