diff options
author | 2010-12-15 09:59:58 -0800 | |
---|---|---|
committer | 2010-12-15 10:11:31 -0800 | |
commit | 0857196107d55bae312c12b72b115d25d5fee4f9 (patch) | |
tree | 2180a2809a3c945de178284fd44b8e5ed26fd42d /libs/rs/rsAllocation.cpp | |
parent | 320a4beda312279e842a97d3af5b3f0b28cbe49d (diff) |
Cleanup and refactoring of an earlier cl.
Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
-rw-r--r-- | libs/rs/rsAllocation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index cb0022377bc5..77e80320b372 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -31,10 +31,13 @@ using namespace android; using namespace android::renderscript; -Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages) : ObjectBase(rsc) { +Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, + RsAllocationMipmapControl mc) + : ObjectBase(rsc) { init(rsc, type); mUsageFlags = usages; + mMipmapControl = mc; allocScriptMemory(); if (mType->getElement()->getHasReferences()) { @@ -795,7 +798,7 @@ RsAllocation rsaAllocationCreateTyped(RsContext con, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages) { Context *rsc = static_cast<Context *>(con); - Allocation * alloc = new Allocation(rsc, static_cast<Type *>(vtype), usages); + Allocation * alloc = new Allocation(rsc, static_cast<Type *>(vtype), usages, mips); alloc->incUserRef(); return alloc; } |