commit | febb22469999b928850182ebc57bfd6fbd7402d6 | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Fri Aug 26 12:49:27 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Aug 26 12:49:27 2016 -0700 |
tree | 40d0bfbf1781f2afb41bf3a0c46b22db94ea8b5f | |
parent | a3f9d59a1731c88fb64c03cda87a04c44b72c889 [diff] |
Reduce CPU overhead on drawRegion() Only batch when the view matrices are the same. This allows us to skip applying the matrix and uploading local coords. drawregion Bench on Nexus 6P: Before 4.69ms After 2.83ms This puts SkiaGL nearly on par with OpenGL. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2282983003 Review-Url: https://codereview.chromium.org/2282983003