Adds a GrTRecorder class that GrInOrderDrawBuffer uses to allocate
authorcdalton <cdalton@nvidia.com>
Wed, 15 Oct 2014 20:43:48 +0000 (13:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Oct 2014 20:43:48 +0000 (13:43 -0700)
commit6819df36446f6fdcbd17d83a72a03de46e6d0d2d
tree4edbd494f61991b0165806f994137a4bf77b96fe
parent80a720eb823ac76fdfa254fe9b9f7333a1458e5c
Adds a GrTRecorder class that GrInOrderDrawBuffer uses to allocate
all its commands interleaved in contiguous memory. GrTRecorder also
supports extra data associated with objects, so we can store arrays
inline without having to call malloc().

Committed: https://skia.googlesource.com/skia/+/360b6801cfd90485891d709e44cf395d527ba69e

Review URL: https://codereview.chromium.org/628453002
gyp/gpu.gypi
gyp/tests.gypi
src/gpu/GrInOrderDrawBuffer.cpp
src/gpu/GrInOrderDrawBuffer.h
src/gpu/GrTRecorder.h [new file with mode: 0644]
tests/GrTRecorderTest.cpp [new file with mode: 0644]