summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/nvflinger.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-02-21 17:31:53 +0100
committerLioncash <mathew1800@gmail.com>2019-02-22 04:09:46 +0100
commit90528f132678ea7dfa9ac4588ae2b8c7808d4685 (patch)
tree57a37cad480b9ec528914a8fc67b699ec8ad016d /src/core/hle/service/nvflinger/nvflinger.h
parentservice/vi/vi_layer: Convert Layer struct into a class (diff)
downloadyuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar.gz
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar.bz2
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar.lz
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar.xz
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.tar.zst
yuzu-90528f132678ea7dfa9ac4588ae2b8c7808d4685.zip
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.h')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index f9458745a..c0a83fffb 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -65,7 +65,10 @@ public:
Kernel::SharedPtr<Kernel::ReadableEvent> FindVsyncEvent(u64 display_id) const;
/// Obtains a buffer queue identified by the ID.
- std::shared_ptr<BufferQueue> FindBufferQueue(u32 id) const;
+ BufferQueue& FindBufferQueue(u32 id);
+
+ /// Obtains a buffer queue identified by the ID.
+ const BufferQueue& FindBufferQueue(u32 id) const;
/// Performs a composition request to the emulated nvidia GPU and triggers the vsync events when
/// finished.
@@ -87,7 +90,7 @@ private:
std::shared_ptr<Nvidia::Module> nvdrv;
std::vector<VI::Display> displays;
- std::vector<std::shared_ptr<BufferQueue>> buffer_queues;
+ std::vector<BufferQueue> buffer_queues;
/// Id to use for the next layer that is created, this counter is shared among all displays.
u64 next_layer_id = 1;