From e3150cfb3edb028407669e4a65e087eae77e718c Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Tue, 24 Jul 2012 18:10:20 -0700 Subject: Plumb context through for serialization. Change-Id: I2a49f57aa7576604deeac898a7cceb36ae68d66f --- rsAllocation.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rsAllocation.h') 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; }; } -- cgit v1.2.3