summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-09 19:04:41 -0400
committerGravatar Lioncash2019-05-09 19:10:13 -0400
commitfd12788967729dc3712c23723957ab6b15d36822 (patch)
tree567b35b23b1c173235994967a9b6d7082aa8e880 /src
parentvideo_core/memory_manager: Amend doxygen comments (diff)
downloadyuzu-fd12788967729dc3712c23723957ab6b15d36822.tar.gz
yuzu-fd12788967729dc3712c23723957ab6b15d36822.tar.xz
yuzu-fd12788967729dc3712c23723957ab6b15d36822.zip
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')
-rw-r--r--src/video_core/memory_manager.cpp2
-rw-r--r--src/video_core/memory_manager.h1
2 files changed, 3 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
25 UpdatePageTableForVMA(initial_vma); 25 UpdatePageTableForVMA(initial_vma);
26} 26}
27 27
28MemoryManager::~MemoryManager() = default;
29
28GPUVAddr MemoryManager::AllocateSpace(u64 size, u64 align) { 30GPUVAddr MemoryManager::AllocateSpace(u64 size, u64 align) {
29 const u64 aligned_size{Common::AlignUp(size, page_size)}; 31 const u64 aligned_size{Common::AlignUp(size, page_size)};
30 const GPUVAddr gpu_addr{FindFreeRegion(address_space_base, aligned_size)}; 32 const GPUVAddr gpu_addr{FindFreeRegion(address_space_base, aligned_size)};
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index ade18c139..4f7b57f8e 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -48,6 +48,7 @@ struct VirtualMemoryArea {
48class MemoryManager final { 48class MemoryManager final {
49public: 49public:
50 MemoryManager(VideoCore::RasterizerInterface& rasterizer); 50 MemoryManager(VideoCore::RasterizerInterface& rasterizer);
51 ~MemoryManager();
51 52
52 GPUVAddr AllocateSpace(u64 size, u64 align); 53 GPUVAddr AllocateSpace(u64 size, u64 align);
53 GPUVAddr AllocateSpace(GPUVAddr addr, u64 size, u64 align); 54 GPUVAddr AllocateSpace(GPUVAddr addr, u64 size, u64 align);