diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-02 12:02:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 12:02:59 +0200 |
commit | 80a3a731237472d8d2141243ca322ccf3276483c (patch) | |
tree | eafea51bbdb8d7ceb9e69cd2d9b1156f1f3c3b9b /src/core/hle/service/nvflinger/nvflinger.h | |
parent | Merge pull request #6598 from FernandoS27/falklands-are-british (diff) | |
parent | service: vi: Retrieve vsync event once per display (diff) | |
download | yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar.gz yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar.bz2 yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar.lz yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar.xz yuzu-80a3a731237472d8d2141243ca322ccf3276483c.tar.zst yuzu-80a3a731237472d8d2141243ca322ccf3276483c.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.h')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 044ac6ac8..3bbe5d92b 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -11,6 +11,7 @@ #include <vector> #include "common/common_types.h" +#include "core/hle/result.h" #include "core/hle/service/kernel_helpers.h" namespace Common { @@ -71,8 +72,9 @@ public: /// Gets the vsync event for the specified display. /// - /// If an invalid display ID is provided, then nullptr is returned. - [[nodiscard]] Kernel::KReadableEvent* FindVsyncEvent(u64 display_id); + /// If an invalid display ID is provided, then VI::ResultNotFound is returned. + /// If the vsync event has already been retrieved, then VI::ResultPermissionDenied is returned. + [[nodiscard]] ResultVal<Kernel::KReadableEvent*> FindVsyncEvent(u64 display_id); /// Performs a composition request to the emulated nvidia GPU and triggers the vsync events when /// finished. |