diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-05-09 19:04:41 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-05-09 19:10:13 -0400 |
| commit | fd12788967729dc3712c23723957ab6b15d36822 (patch) | |
| tree | 567b35b23b1c173235994967a9b6d7082aa8e880 /src/video_core/memory_manager.cpp | |
| parent | 53afe47cec0bfb7ae8b78a95d15f0e081e1a84c9 (diff) | |
video_core/memory_manager: Default the destructor within the cpp file
Makes the class less surprising when it comes to forward declaring the
type, and also prevents inlining the destruction code of the class,
given it contains non-trivial types.
Diffstat (limited to 'src/video_core/memory_manager.cpp')
| -rw-r--r-- | src/video_core/memory_manager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp index 6c98c6701..2890ea947 100644 --- a/src/video_core/memory_manager.cpp +++ b/src/video_core/memory_manager.cpp @@ -25,6 +25,8 @@ MemoryManager::MemoryManager(VideoCore::RasterizerInterface& rasterizer) : raste UpdatePageTableForVMA(initial_vma); } +MemoryManager::~MemoryManager() = default; + GPUVAddr MemoryManager::AllocateSpace(u64 size, u64 align) { const u64 aligned_size{Common::AlignUp(size, page_size)}; const GPUVAddr gpu_addr{FindFreeRegion(address_space_base, aligned_size)}; |
