Loading libs/rs/RenderScript.h +1 −1 Original line number Diff line number Diff line Loading @@ -288,7 +288,7 @@ typedef struct { // Async commands for returning new IDS void * rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, RsType rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, const RsDimension *dims, const uint32_t *vals); Loading libs/rs/rsAdapter.cpp +2 −10 Original line number Diff line number Diff line Loading @@ -27,15 +27,11 @@ using namespace android::renderscript; Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); } Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); setAllocation(a); } Loading Loading @@ -145,15 +141,11 @@ void rsi_Adapter1DData(Context *rsc, RsAdapter1D va, const void *data) Adapter2D::Adapter2D(Context *rsc) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); } Adapter2D::Adapter2D(Context *rsc, Allocation *a) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); setAllocation(a); } Loading libs/rs/rsAllocation.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -57,8 +57,6 @@ Allocation::Allocation(Context *rsc, const Type *type, void *bmp, void Allocation::init(Context *rsc, const Type *type) { mAllocFile = __FILE__; mAllocLine = __LINE__; mPtr = NULL; mCpuWrite = false; Loading Loading @@ -478,7 +476,7 @@ Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) uint32_t dataSize = stream->loadU32(); if(dataSize != type->getSizeBytes()) { LOGE("failed to read allocation because numbytes written is not the same loaded type wants\n"); delete type; ObjectBase::checkDelete(type); return NULL; } Loading libs/rs/rsElement.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -30,8 +30,6 @@ using namespace android::renderscript; Element::Element(Context *rsc) : ObjectBase(rsc) { mBits = 0; mAllocFile = __FILE__; mAllocLine = __LINE__; mFields = NULL; mFieldCount = 0; mHasReference = false; Loading Loading @@ -140,7 +138,7 @@ Element *Element::createFromStream(Context *rsc, IStream *stream) for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { Element *ee = rsc->mStateElement.mElements[ct]; if(ee->isEqual(elem)) { delete elem; ObjectBase::checkDelete(elem); ee->incUserRef(); return ee; } Loading libs/rs/rsFont.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -36,8 +36,6 @@ using namespace android::renderscript; Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { mAllocFile = __FILE__; mAllocLine = __LINE__; mInitialized = false; mHasKerning = false; mFace = NULL; Loading Loading @@ -308,7 +306,7 @@ Font * Font::create(Context *rsc, const char *name, uint32_t fontSize, uint32_t return newFont; } delete newFont; ObjectBase::checkDelete(newFont); return NULL; } Loading Loading
libs/rs/RenderScript.h +1 −1 Original line number Diff line number Diff line Loading @@ -288,7 +288,7 @@ typedef struct { // Async commands for returning new IDS void * rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, RsType rsaTypeCreate(RsContext, RsElement, uint32_t dimCount, const RsDimension *dims, const uint32_t *vals); Loading
libs/rs/rsAdapter.cpp +2 −10 Original line number Diff line number Diff line Loading @@ -27,15 +27,11 @@ using namespace android::renderscript; Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); } Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); setAllocation(a); } Loading Loading @@ -145,15 +141,11 @@ void rsi_Adapter1DData(Context *rsc, RsAdapter1D va, const void *data) Adapter2D::Adapter2D(Context *rsc) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); } Adapter2D::Adapter2D(Context *rsc, Allocation *a) : ObjectBase(rsc) { mAllocFile = __FILE__; mAllocLine = __LINE__; reset(); setAllocation(a); } Loading
libs/rs/rsAllocation.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -57,8 +57,6 @@ Allocation::Allocation(Context *rsc, const Type *type, void *bmp, void Allocation::init(Context *rsc, const Type *type) { mAllocFile = __FILE__; mAllocLine = __LINE__; mPtr = NULL; mCpuWrite = false; Loading Loading @@ -478,7 +476,7 @@ Allocation *Allocation::createFromStream(Context *rsc, IStream *stream) uint32_t dataSize = stream->loadU32(); if(dataSize != type->getSizeBytes()) { LOGE("failed to read allocation because numbytes written is not the same loaded type wants\n"); delete type; ObjectBase::checkDelete(type); return NULL; } Loading
libs/rs/rsElement.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -30,8 +30,6 @@ using namespace android::renderscript; Element::Element(Context *rsc) : ObjectBase(rsc) { mBits = 0; mAllocFile = __FILE__; mAllocLine = __LINE__; mFields = NULL; mFieldCount = 0; mHasReference = false; Loading Loading @@ -140,7 +138,7 @@ Element *Element::createFromStream(Context *rsc, IStream *stream) for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { Element *ee = rsc->mStateElement.mElements[ct]; if(ee->isEqual(elem)) { delete elem; ObjectBase::checkDelete(elem); ee->incUserRef(); return ee; } Loading
libs/rs/rsFont.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -36,8 +36,6 @@ using namespace android::renderscript; Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { mAllocFile = __FILE__; mAllocLine = __LINE__; mInitialized = false; mHasKerning = false; mFace = NULL; Loading Loading @@ -308,7 +306,7 @@ Font * Font::create(Context *rsc, const char *name, uint32_t fontSize, uint32_t return newFont; } delete newFont; ObjectBase::checkDelete(newFont); return NULL; } Loading