Revise DrawAtlasBatch to get rid of one copy when generating the batch.
authorjvanverth <jvanverth@google.com>
Wed, 12 Aug 2015 15:15:31 +0000 (08:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Aug 2015 15:15:31 +0000 (08:15 -0700)
commit5a4d23508c3ca2c6cbca4e725ce65c0227b3b9ac
tree427aa05fa2cc797a6792f7faeadd3e5bd85aecd2
parent69a9689acef172afc52c9a191f14ba2893c19da8
Revise DrawAtlasBatch to get rid of one copy when generating the batch.

This doesn't appear to have much affect on perf in SampleApp, but
it should avoid some copies and replaces a couple of STArrays
with one that just does a memcpy in the copy constructor.

Review URL: https://codereview.chromium.org/1279343004
src/gpu/GrDrawContext.cpp
src/gpu/batches/GrDrawAtlasBatch.cpp
src/gpu/batches/GrDrawAtlasBatch.h