From ef70a20a3000bd9aab0807fa1da8ca89bf648500 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 13 Jan 2011 17:38:18 -0800 Subject: Implement sub updates for mipmap levels and cubmaps. Change-Id: I7c41263a0c1e583574d0c1fcb64b1a0440b5b555 --- libs/rs/rsAllocation.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libs/rs/rsAllocation.h') diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h index a160765..4f5d5a8 100644 --- a/libs/rs/rsAllocation.h +++ b/libs/rs/rsAllocation.h @@ -105,9 +105,6 @@ public: return mMipmapControl != RS_ALLOCATION_MIPMAP_NONE; } - void upload2DTexture(bool isFirstUpload, const void *ptr); - void update2DTexture(const void *ptr, uint32_t xoff, uint32_t yoff, - uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h); protected: ObjectBaseRef mType; @@ -149,7 +146,9 @@ protected: private: void init(Context *rsc, const Type *); - void uploadCubeTexture(bool isFirstUpload); + void upload2DTexture(bool isFirstUpload); + void update2DTexture(const void *ptr, uint32_t xoff, uint32_t yoff, + uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h); void allocScriptMemory(); void freeScriptMemory(); -- cgit v1.1