Loading include/binder/MemoryDealer.h +2 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ class SimpleBestFitAllocator; class MemoryDealer : public RefBase { public: MemoryDealer(size_t size, const char* name = 0); MemoryDealer(size_t size, const char* name = 0, uint32_t flags = 0 /* or bits such as MemoryHeapBase::READ_ONLY */ ); virtual sp<IMemory> allocate(size_t size); virtual void deallocate(size_t offset); Loading libs/binder/MemoryDealer.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -225,8 +225,8 @@ Allocation::~Allocation() // ---------------------------------------------------------------------------- MemoryDealer::MemoryDealer(size_t size, const char* name) : mHeap(new MemoryHeapBase(size, 0, name)), MemoryDealer::MemoryDealer(size_t size, const char* name, uint32_t flags) : mHeap(new MemoryHeapBase(size, flags, name)), mAllocator(new SimpleBestFitAllocator(size)) { } Loading Loading
include/binder/MemoryDealer.h +2 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ class SimpleBestFitAllocator; class MemoryDealer : public RefBase { public: MemoryDealer(size_t size, const char* name = 0); MemoryDealer(size_t size, const char* name = 0, uint32_t flags = 0 /* or bits such as MemoryHeapBase::READ_ONLY */ ); virtual sp<IMemory> allocate(size_t size); virtual void deallocate(size_t offset); Loading
libs/binder/MemoryDealer.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -225,8 +225,8 @@ Allocation::~Allocation() // ---------------------------------------------------------------------------- MemoryDealer::MemoryDealer(size_t size, const char* name) : mHeap(new MemoryHeapBase(size, 0, name)), MemoryDealer::MemoryDealer(size_t size, const char* name, uint32_t flags) : mHeap(new MemoryHeapBase(size, flags, name)), mAllocator(new SimpleBestFitAllocator(size)) { } Loading