summaryrefslogtreecommitdiff
path: root/libs/utils/RefBase.cpp
diff options
context:
space:
mode:
author Siva Velusamy <vsiva@google.com> 2012-02-29 14:04:04 -0800
committer Siva Velusamy <vsiva@google.com> 2012-03-01 17:41:53 -0800
commit1c5387e1cb12a2aa2b1aaf4c2f4f5c61be4828aa (patch)
tree729b9c07f11ed481c08145e1e53bc52e1cb032e8 /libs/utils/RefBase.cpp
parentb5d3dd2cd5780c48fb79cc2f5a0c0f6237ebc952 (diff)
gltrace: Send vertex attribute data after glDraw() call.
This patch enables tracing of vertex attribute data that is specified using glVertexAttribPointer(). At the time the glVertexAttribPointer() call is made, we only receive a pointer in client space, without any indication of the size (# of attributes). This size is known only at the time of the glDraw() call. This patch generates a new message glVertexAttribPointerData() when a draw call is issued that contains the vertex attribute data. A glDrawArrays() call directly gives the size of data to copy. A glDrawElements() call gives the indices to copy. In such a case, all data between the min & max indices drawn are copied and sent to the host. To support glDrawElements() with an element array buffer, this patch also adds state that maintains a copy of all element array buffers. Change-Id: I434da794a0aa9ada8e7474e219ffb1d79b183ecf
Diffstat (limited to 'libs/utils/RefBase.cpp')
0 files changed, 0 insertions, 0 deletions