diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-06 17:20:52 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-06 17:20:52 +0200 |
commit | da62e92784fbae15942ae4be57fb7eb3b4a9b5b5 (patch) | |
tree | 6b78d4a32f52cf3bdacafb4bf1b84aeca80dc530 /src/core/hle/service/nvflinger/nvflinger.h | |
parent | Merge pull request #6279 from ogniK5377/nvhost-prof (diff) | |
download | yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar.gz yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar.bz2 yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar.lz yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar.xz yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.tar.zst yuzu-da62e92784fbae15942ae4be57fb7eb3b4a9b5b5.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.h')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 6fe2c7f2a..ebc82c688 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -67,7 +67,7 @@ public: /// Finds the buffer queue ID of the specified layer in the specified display. /// /// If an invalid display ID or layer ID is provided, then an empty optional is returned. - [[nodiscard]] std::optional<u32> FindBufferQueueId(u64 display_id, u64 layer_id) const; + [[nodiscard]] std::optional<u32> FindBufferQueueId(u64 display_id, u64 layer_id); /// Gets the vsync event for the specified display. /// @@ -100,6 +100,14 @@ private: /// Finds the layer identified by the specified ID in the desired display. [[nodiscard]] const VI::Layer* FindLayer(u64 display_id, u64 layer_id) const; + /// Finds the layer identified by the specified ID in the desired display, + /// or creates the layer if it is not found. + /// To be used when the system expects the specified ID to already exist. + [[nodiscard]] VI::Layer* FindOrCreateLayer(u64 display_id, u64 layer_id); + + /// Creates a layer with the specified layer ID in the desired display. + void CreateLayerAtId(VI::Display& display, u64 layer_id); + static void VSyncThread(NVFlinger& nv_flinger); void SplitVSync(); |