diff options
author | Jason Sams <jsams@google.com> | 2012-07-24 18:10:20 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2012-07-24 18:10:20 -0700 |
commit | e3150cfb3edb028407669e4a65e087eae77e718c (patch) | |
tree | 2c722d95d30d534bdeef11958a4a50d33b3c3e7f /rsAllocation.h | |
parent | cd1e8c8d88330f02aec7092ab5bff8e4aa51f508 (diff) | |
download | rs-e3150cfb3edb028407669e4a65e087eae77e718c.tar.gz |
Plumb context through for serialization.
Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f
Diffstat (limited to 'rsAllocation.h')
-rw-r--r-- | rsAllocation.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rsAllocation.h b/rsAllocation.h index dce09ed6..2da2dbf7 100644 --- a/rsAllocation.h +++ b/rsAllocation.h @@ -107,7 +107,7 @@ public: void removeProgramToDirty(const Program *); virtual void dumpLOGV(const char *prefix) const; - virtual void serialize(OStream *stream) const; + virtual void serialize(Context *rsc, OStream *stream) const; virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_ALLOCATION; } static Allocation *createFromStream(Context *rsc, IStream *stream); @@ -152,9 +152,9 @@ private: Allocation(Context *rsc, const Type *, uint32_t usages, RsAllocationMipmapControl mc, void *ptr); uint32_t getPackedSize() const; - static void writePackedData(const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded); - void unpackVec3Allocation(const void *data, size_t dataSize); - void packVec3Allocation(OStream *stream) const; + static void writePackedData(Context *rsc, const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded); + void unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize); + void packVec3Allocation(Context *rsc, OStream *stream) const; }; } |