prefer system reference over global accessor

This commit is contained in:
Michael Scire
2019-07-08 23:17:44 -07:00
parent 697206092e
commit a1845d1dd3
3 changed files with 13 additions and 9 deletions

View File

@ -14,6 +14,10 @@ namespace VideoCore {
class RasterizerInterface;
}
namespace Core {
class System;
}
namespace Tegra {
/**
@ -47,7 +51,7 @@ struct VirtualMemoryArea {
class MemoryManager final {
public:
explicit MemoryManager(VideoCore::RasterizerInterface& rasterizer);
explicit MemoryManager(Core::System& system, VideoCore::RasterizerInterface& rasterizer);
~MemoryManager();
GPUVAddr AllocateSpace(u64 size, u64 align);
@ -173,6 +177,8 @@ private:
Common::PageTable page_table{page_bits};
VMAMap vma_map;
VideoCore::RasterizerInterface& rasterizer;
Core::System& system;
};
} // namespace Tegra