diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-14 13:16:56 +0000 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2018-11-21 09:52:04 +0000 |
commit | df3103622b7de05f4e35b22a2c94b4a46eab4efc (patch) | |
tree | 17e10253e7a069c69d10bea0882b699b99d74b86 /arm_compute/runtime/OffsetMemoryPool.h | |
parent | c47ef20d69e8ea0f519fdc679435cd7037fc18fe (diff) | |
download | ComputeLibrary-df3103622b7de05f4e35b22a2c94b4a46eab4efc.tar.gz |
COMPMID-1088: Use IMemoryRegion in interfaces where possible
-Simplifies import memory interface
-Changes the used of void** handles with appropriate interfaces.
Change-Id: I5918c855c11f46352058864623336b352162a4b7
Diffstat (limited to 'arm_compute/runtime/OffsetMemoryPool.h')
-rw-r--r-- | arm_compute/runtime/OffsetMemoryPool.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arm_compute/runtime/OffsetMemoryPool.h b/arm_compute/runtime/OffsetMemoryPool.h index 9685fd1319..480d424b5b 100644 --- a/arm_compute/runtime/OffsetMemoryPool.h +++ b/arm_compute/runtime/OffsetMemoryPool.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -26,6 +26,7 @@ #include "arm_compute/runtime/IMemoryPool.h" +#include "arm_compute/runtime/IMemoryRegion.h" #include "arm_compute/runtime/Types.h" #include <cstddef> @@ -47,7 +48,7 @@ public: */ OffsetMemoryPool(IAllocator *allocator, size_t blob_size); /** Default Destructor */ - ~OffsetMemoryPool(); + ~OffsetMemoryPool() = default; /** Prevent instances of this class to be copy constructed */ OffsetMemoryPool(const OffsetMemoryPool &) = delete; /** Prevent instances of this class to be copy assigned */ @@ -64,9 +65,9 @@ public: std::unique_ptr<IMemoryPool> duplicate() override; private: - IAllocator *_allocator; /**< Allocator to use for internal allocation */ - void *_blob; /**< Memory blob */ - size_t _blob_size; /**< Sizes of the allocated memory blob */ + IAllocator *_allocator; /**< Allocator to use for internal allocation */ + std::unique_ptr<IMemoryRegion> _blob; /**< Memory blob */ + size_t _blob_size; /**< Sizes of the allocated memory blob */ }; } // namespace arm_compute #endif /* __ARM_COMPUTE_OFFSETMEMORYPOOL_H__ */ |