aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FrontBufferedStreamTest.cpp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2014-10-23 11:57:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-23 11:57:12 -0700
commit73f105345066b1f22f15ba6575cb3800dd9313b8 (patch)
treeace55f313b7a430ab7021fe08e5da142e43560ee /tests/FrontBufferedStreamTest.cpp
parent70649c174b7a978cdf33bd3a6413ca878950ecc2 (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
Diffstat (limited to 'tests/FrontBufferedStreamTest.cpp')
0 files changed, 0 insertions, 0 deletions