Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 298cb4ff authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 7529

* changes:
  Make MemoryDealer's destructor protected instead of public.
parents 7e1bf6cb f0adf848
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -218,8 +218,6 @@ public:
            const sp<HeapInterface>& heap,
            const sp<AllocatorInterface>& allocator);

    virtual ~MemoryDealer();

    virtual sp<IMemory> allocate(size_t size, uint32_t flags = 0);
    virtual void        deallocate(size_t offset);
    virtual void        dump(const char* what, uint32_t flags = 0) const;
@@ -228,6 +226,9 @@ public:
    sp<IMemoryHeap> getMemoryHeap() const { return heap(); }
    sp<AllocatorInterface> getAllocator() const { return allocator(); }

protected:
    virtual ~MemoryDealer();

private:    
    const sp<HeapInterface>&        heap() const;
    const sp<AllocatorInterface>&   allocator() const;