diff options
author | Lioncash <mathew1800@gmail.com> | 2019-02-21 17:31:53 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-02-22 04:09:46 +0100 |
commit | 90528f132678ea7dfa9ac4588ae2b8c7808d4685 (patch) | |
tree | 57a37cad480b9ec528914a8fc67b699ec8ad016d /src/core/hle/service/vi/layer/vi_layer.h | |
parent | service/vi/vi_layer: Convert Layer struct into a class (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/core/hle/service/vi/layer/vi_layer.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/service/vi/layer/vi_layer.h b/src/core/hle/service/vi/layer/vi_layer.h index dd4f7e596..c6bfd01f6 100644 --- a/src/core/hle/service/vi/layer/vi_layer.h +++ b/src/core/hle/service/vi/layer/vi_layer.h @@ -4,8 +4,6 @@ #pragma once -#include <memory> - #include "common/common_types.h" namespace Service::NVFlinger { @@ -22,14 +20,14 @@ public: /// @param id The ID to assign to this layer. /// @param queue The buffer queue for this layer to use. /// - Layer(u64 id, std::shared_ptr<NVFlinger::BufferQueue> queue); + Layer(u64 id, NVFlinger::BufferQueue& queue); ~Layer(); Layer(const Layer&) = delete; Layer& operator=(const Layer&) = delete; Layer(Layer&&) = default; - Layer& operator=(Layer&&) = default; + Layer& operator=(Layer&&) = delete; /// Gets the ID for this layer. u64 GetID() const { @@ -38,17 +36,17 @@ public: /// Gets a reference to the buffer queue this layer is using. NVFlinger::BufferQueue& GetBufferQueue() { - return *buffer_queue; + return buffer_queue; } /// Gets a const reference to the buffer queue this layer is using. const NVFlinger::BufferQueue& GetBufferQueue() const { - return *buffer_queue; + return buffer_queue; } private: u64 id; - std::shared_ptr<NVFlinger::BufferQueue> buffer_queue; + NVFlinger::BufferQueue& buffer_queue; }; } // namespace Service::VI |