diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-03 23:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 23:05:57 +0100 |
commit | ef69b4b83050967732e6e977396111289c9e86ba (patch) | |
tree | 0f0908b21f5cec9dca4d2269cd724cfca81848db /src/core/hle/service/nvflinger/nvflinger.h | |
parent | Merge pull request #1833 from lioncash/clean (diff) | |
parent | hle_ipc: Refactor SleepClientThread to avoid ReadableEvent (diff) | |
download | yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar.gz yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar.bz2 yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar.lz yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar.xz yuzu-ef69b4b83050967732e6e977396111289c9e86ba.tar.zst yuzu-ef69b4b83050967732e6e977396111289c9e86ba.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.h')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 3dc69e69b..9abba555b 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -10,12 +10,17 @@ #include <vector> #include "common/common_types.h" -#include "core/hle/kernel/event.h" +#include "core/hle/kernel/object.h" namespace CoreTiming { struct EventType; } +namespace Kernel { +class ReadableEvent; +class WritableEvent; +} // namespace Kernel + namespace Service::Nvidia { class Module; } @@ -40,7 +45,7 @@ struct Display { std::string name; std::vector<Layer> layers; - Kernel::SharedPtr<Kernel::Event> vsync_event; + Kernel::EventPair vsync_event; }; class NVFlinger final { @@ -61,7 +66,7 @@ public: u32 GetBufferQueueId(u64 display_id, u64 layer_id); /// Gets the vsync event for the specified display. - Kernel::SharedPtr<Kernel::Event> GetVsyncEvent(u64 display_id); + Kernel::SharedPtr<Kernel::ReadableEvent> GetVsyncEvent(u64 display_id); /// Obtains a buffer queue identified by the id. std::shared_ptr<BufferQueue> GetBufferQueue(u32 id) const; |