diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-04 06:45:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-01-04 06:45:06 +0100 |
commit | 64c56315793d2b6dbf7a55f99d4bcc51929f03cb (patch) | |
tree | 4cd4a922499783c6369a60068442dee51cdfffe3 /src/core/hle/service/vi/display/vi_display.h | |
parent | Merge pull request #3247 from FernandoS27/remap-fix (diff) | |
download | yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.gz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.bz2 yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.lz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.xz yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.tar.zst yuzu-64c56315793d2b6dbf7a55f99d4bcc51929f03cb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/vi/display/vi_display.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h index 8bb966a85..a3855d8cd 100644 --- a/src/core/hle/service/vi/display/vi_display.h +++ b/src/core/hle/service/vi/display/vi_display.h @@ -4,6 +4,7 @@ #pragma once +#include <memory> #include <string> #include <vector> @@ -69,6 +70,12 @@ public: /// void CreateLayer(u64 id, NVFlinger::BufferQueue& buffer_queue); + /// Closes and removes a layer from this display with the given ID. + /// + /// @param id The ID assigned to the layer to close. + /// + void CloseLayer(u64 id); + /// Attempts to find a layer with the given ID. /// /// @param id The layer ID. @@ -91,7 +98,7 @@ private: u64 id; std::string name; - std::vector<Layer> layers; + std::vector<std::shared_ptr<Layer>> layers; Kernel::EventPair vsync_event; }; |