summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/display
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/vi/display
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/vi/display')
-rw-r--r--src/core/hle/service/vi/display/vi_display.cpp4
-rw-r--r--src/core/hle/service/vi/display/vi_display.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.cpp b/src/core/hle/service/vi/display/vi_display.cpp
index 9c0afd152..01d80311b 100644
--- a/src/core/hle/service/vi/display/vi_display.cpp
+++ b/src/core/hle/service/vi/display/vi_display.cpp
@@ -39,11 +39,11 @@ void Display::SignalVSyncEvent() {
vsync_event.writable->Signal();
}
-void Display::CreateLayer(u64 id, std::shared_ptr<NVFlinger::BufferQueue> buffer_queue) {
+void Display::CreateLayer(u64 id, NVFlinger::BufferQueue& buffer_queue) {
// TODO(Subv): Support more than 1 layer.
ASSERT_MSG(layers.empty(), "Only one layer is supported per display at the moment");
- layers.emplace_back(id, std::move(buffer_queue));
+ layers.emplace_back(id, buffer_queue);
}
Layer* Display::FindLayer(u64 id) {
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index 8948102bc..2acd46ff8 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -67,7 +67,7 @@ public:
/// @param id The ID to assign to the created layer.
/// @param buffer_queue The buffer queue for the layer instance to use.
///
- void CreateLayer(u64 id, std::shared_ptr<NVFlinger::BufferQueue> buffer_queue);
+ void CreateLayer(u64 id, NVFlinger::BufferQueue& buffer_queue);
/// Attempts to find a layer with the given ID.
///