summaryrefslogtreecommitdiff
path: root/rsElement.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 /rsElement.cpp
parentcd1e8c8d88330f02aec7092ab5bff8e4aa51f508 (diff)
downloadrs-e3150cfb3edb028407669e4a65e087eae77e718c.tar.gz
Plumb context through for serialization.
Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
Diffstat (limited to 'rsElement.cpp')
-rw-r--r--rsElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsElement.cpp b/rsElement.cpp
index fb2892ce..44249384 100644
--- a/rsElement.cpp
+++ b/rsElement.cpp
@@ -92,7 +92,7 @@ void Element::dumpLOGV(const char *prefix) const {
}
}
-void Element::serialize(OStream *stream) const {
+void Element::serialize(Context *rsc, OStream *stream) const {
// Need to identify ourselves
stream->addU32((uint32_t)getClassId());
@@ -106,7 +106,7 @@ void Element::serialize(OStream *stream) const {
for (uint32_t ct = 0; ct < mFieldCount; ct++) {
stream->addString(&mFields[ct].name);
stream->addU32(mFields[ct].arraySize);
- mFields[ct].e->serialize(stream);
+ mFields[ct].e->serialize(rsc, stream);
}
}