diff options
author | Jason Sams <jsams@google.com> | 2015-04-15 17:42:22 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2015-04-15 18:19:45 -0700 |
commit | 43574b617762ee44bc46cb7e4a0d75786b80023f (patch) | |
tree | 165bd724157fb74b50ac5cfd4ecf91ffe10e8d49 /rsAllocation.cpp | |
parent | 08b87f9bb3a50a4f6bdf22bbe7c5c0449f9337d4 (diff) | |
download | rs-43574b617762ee44bc46cb7e4a0d75786b80023f.tar.gz |
Cleanup allocation constructor
Change-Id: Id48e6c24cef810705811ba799350c3f88c19018a
Diffstat (limited to 'rsAllocation.cpp')
-rw-r--r-- | rsAllocation.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/rsAllocation.cpp b/rsAllocation.cpp index ca65a406..0e742423 100644 --- a/rsAllocation.cpp +++ b/rsAllocation.cpp @@ -45,47 +45,12 @@ Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) : ObjectBase(rsc) { memset(&mHal, 0, sizeof(mHal)); - - mHal.state.baseAlloc = alloc; - mHal.state.type = type; mHal.state.usageFlags = alloc->mHal.state.usageFlags; mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE; setType(type); updateCache(); - - - - - struct Hal { - void * drv; - - struct DrvState { - struct LodState { - void * mallocPtr; - size_t stride; - uint32_t dimX; - uint32_t dimY; - uint32_t dimZ; - } lod[android::renderscript::Allocation::MAX_LOD]; - size_t faceOffset; - uint32_t lodCount; - uint32_t faceCount; - - struct YuvState { - uint32_t shift; - uint32_t step; - } yuv; - - int grallocFlags; - uint32_t dimArray[Type::mMaxArrays]; - }; - mutable DrvState drvState; - - }; - Hal mHal; - } void Allocation::operator delete(void* ptr) { |