summaryrefslogtreecommitdiffstats
path: root/rsMesh.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-07-24 18:10:20 -0700
committerJason Sams <jsams@google.com>2012-07-24 18:10:20 -0700
commite3150cfb3edb028407669e4a65e087eae77e718c (patch)
tree2c722d95d30d534bdeef11958a4a50d33b3c3e7f /rsMesh.cpp
parentcd1e8c8d88330f02aec7092ab5bff8e4aa51f508 (diff)
downloadandroid_frameworks_rs-e3150cfb3edb028407669e4a65e087eae77e718c.tar.gz
android_frameworks_rs-e3150cfb3edb028407669e4a65e087eae77e718c.tar.bz2
android_frameworks_rs-e3150cfb3edb028407669e4a65e087eae77e718c.zip
Plumb context through for serialization.
Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
Diffstat (limited to 'rsMesh.cpp')
-rw-r--r--rsMesh.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rsMesh.cpp b/rsMesh.cpp
index 399a52ba..89361e5f 100644
--- a/rsMesh.cpp
+++ b/rsMesh.cpp
@@ -78,7 +78,7 @@ void Mesh::init() {
#endif
}
-void Mesh::serialize(OStream *stream) const {
+void Mesh::serialize(Context *rsc, OStream *stream) const {
// Need to identify ourselves
stream->addU32((uint32_t)getClassId());
@@ -88,7 +88,7 @@ void Mesh::serialize(OStream *stream) const {
// Store number of vertex streams
stream->addU32(mHal.state.vertexBuffersCount);
for (uint32_t vCount = 0; vCount < mHal.state.vertexBuffersCount; vCount ++) {
- mHal.state.vertexBuffers[vCount]->serialize(stream);
+ mHal.state.vertexBuffers[vCount]->serialize(rsc, stream);
}
stream->addU32(mHal.state.primitivesCount);
@@ -98,7 +98,7 @@ void Mesh::serialize(OStream *stream) const {
if (mHal.state.indexBuffers[pCount]) {
stream->addU32(1);
- mHal.state.indexBuffers[pCount]->serialize(stream);
+ mHal.state.indexBuffers[pCount]->serialize(rsc, stream);
} else {
stream->addU32(0);
}
@@ -215,7 +215,7 @@ void Mesh::uploadAll(Context *rsc) {
}
}
-void Mesh::computeBBox() {
+void Mesh::computeBBox(Context *rsc) {
float *posPtr = NULL;
uint32_t vectorSize = 0;
uint32_t stride = 0;