commit | 5fa47f4fd13b3158de4599414c86d17649c2dd1c | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Thu Aug 18 15:42:32 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Aug 18 15:42:32 2016 -0700 |
tree | 729c8339c1d6a1488fc57a3102e78c7bf119b89f | |
parent | abe795e4db533c2e230be0c2be868754e5a02a7e [diff] |
Fast path translate() in SkCanvas and SkLiteDL. This adds didTranslate() so that SkLiteDL (and other canvas recorders) can record the translate rather than the full concat. It also adds a case to SkMatrix::preTranslate() to fast path translate x translate -> translate (i.e. +=). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2255283002 Review-Url: https://codereview.chromium.org/2255283002