commit | 73f105345066b1f22f15ba6575cb3800dd9313b8 | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Thu Oct 23 11:57:12 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Oct 23 11:57:12 2014 -0700 |
tree | ace55f313b7a430ab7021fe08e5da142e43560ee | |
parent | 70649c174b7a978cdf33bd3a6413ca878950ecc2 [diff] |
Allocate only the vertices we need for text. This restructures the vertex allocation for text rendering to compute the max number of vertices we would need for a line of text, and then only allocate that much. If this number exceeds the quad index limit, then it will allocate for the max number of quads, and reallocate for the rest later. Review URL: https://codereview.chromium.org/663423003