diff options
author | Jason Sams <rjsams@android.com> | 2011-01-13 17:38:18 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2011-01-13 17:38:18 -0800 |
commit | ef70a20a3000bd9aab0807fa1da8ca89bf648500 (patch) | |
tree | 35e45e6fa8e2cf47992f3589ea183c5d542f3e36 /libs/rs/rsAllocation.h | |
parent | 9333e64f79f5876584ed992c7e2c2dffacab8df0 (diff) | |
download | frameworks_base-ef70a20a3000bd9aab0807fa1da8ca89bf648500.zip frameworks_base-ef70a20a3000bd9aab0807fa1da8ca89bf648500.tar.gz frameworks_base-ef70a20a3000bd9aab0807fa1da8ca89bf648500.tar.bz2 |
Implement sub updates for mipmap levels and cubmaps.
Change-Id: I7c41263a0c1e583574d0c1fcb64b1a0440b5b555
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r-- | libs/rs/rsAllocation.h | 7 |
1 files changed, 3 insertions, 4 deletions
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<const Type> 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(); |