diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-15 22:05:17 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-15 22:06:23 -0500 |
commit | a8fa5019b51c9ce765124121daac863cfc1365aa (patch) | |
tree | e23b97873c1e6b4fcb34066fccb393d2a1147bb8 /src/video_core/gpu.h | |
parent | 99da6362c43a24c608a2790f668f10a62e3b80a6 (diff) |
video_core: Remove usages of System::GetInstance() within the engines
Avoids the use of the global accessor in favor of explicitly making the
system a dependency within the interface.
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index a482196ea9..0f5bfdcbf8 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -6,12 +6,15 @@ #include <array> #include <memory> -#include <vector> #include "common/common_types.h" #include "core/hle/service/nvflinger/buffer_queue.h" #include "video_core/dma_pusher.h" #include "video_core/memory_manager.h" +namespace Core { +class System; +} + namespace VideoCore { class RasterizerInterface; } @@ -118,7 +121,7 @@ enum class EngineID { class GPU final { public: - explicit GPU(VideoCore::RasterizerInterface& rasterizer); + explicit GPU(Core::System& system, VideoCore::RasterizerInterface& rasterizer); ~GPU(); struct MethodCall { |