diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-07 10:05:46 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-08-07 21:18:47 +0200 |
commit | 36cf96857eab706c07470e228542900c41dbabd1 (patch) | |
tree | a4a5648eb91d9156976411c2fe0371831ad67f9f /src/core/hle/service/vi/display/vi_display.h | |
parent | core: hle: kernel: DisableDispatch on suspend threads. (diff) | |
download | yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar.gz yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar.bz2 yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar.lz yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar.xz yuzu-36cf96857eab706c07470e228542900c41dbabd1.tar.zst yuzu-36cf96857eab706c07470e228542900c41dbabd1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/vi/display/vi_display.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h index 166f2a4cc..0979fc421 100644 --- a/src/core/hle/service/vi/display/vi_display.h +++ b/src/core/hle/service/vi/display/vi_display.h @@ -18,6 +18,9 @@ class KEvent; namespace Service::NVFlinger { class BufferQueue; } +namespace Service::KernelHelpers { +class ServiceContext; +} // namespace Service::KernelHelpers namespace Service::VI { @@ -31,10 +34,13 @@ class Display { public: /// Constructs a display with a given unique ID and name. /// - /// @param id The unique ID for this display. + /// @param id The unique ID for this display. + /// @param service_context_ The ServiceContext for the owning service. /// @param name_ The name for this display. + /// @param system_ The global system instance. /// - Display(u64 id, std::string name_, Core::System& system); + Display(u64 id, std::string name_, KernelHelpers::ServiceContext& service_context_, + Core::System& system_); ~Display(); /// Gets the unique ID assigned to this display. @@ -98,9 +104,10 @@ public: private: u64 display_id; std::string name; + KernelHelpers::ServiceContext& service_context; std::vector<std::shared_ptr<Layer>> layers; - Kernel::KEvent vsync_event; + Kernel::KEvent* vsync_event{}; }; } // namespace Service::VI |