summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/layer.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-19 15:47:19 +0100
committerLiam <byteslice@airmail.cc>2024-02-20 05:59:35 +0100
commit9f159dd62cbb1a4efe9c5cd724a94caf8c885793 (patch)
tree3b419db99ff18b0e7ea58789fd4767d888f3da58 /src/core/hle/service/vi/layer.h
parentImport keys from filesystem. (#13056) (diff)
downloadyuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar.gz
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar.bz2
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar.lz
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar.xz
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.tar.zst
yuzu-9f159dd62cbb1a4efe9c5cd724a94caf8c885793.zip
Diffstat (limited to 'src/core/hle/service/vi/layer.h')
-rw-r--r--src/core/hle/service/vi/layer.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/core/hle/service/vi/layer.h b/src/core/hle/service/vi/layer.h
index b85c8df61..e4c9c9864 100644
--- a/src/core/hle/service/vi/layer.h
+++ b/src/core/hle/service/vi/layer.h
@@ -13,29 +13,31 @@ class Layer {
public:
constexpr Layer() = default;
- void Initialize(u64 id, u64 owner_aruid, Display* display) {
+ void Initialize(u64 id, u64 owner_aruid, Display* display, s32 consumer_binder_id,
+ s32 producer_binder_id) {
m_id = id;
m_owner_aruid = owner_aruid;
m_display = display;
+ m_consumer_binder_id = consumer_binder_id;
+ m_producer_binder_id = producer_binder_id;
m_is_initialized = true;
}
void Finalize() {
m_id = {};
+ m_owner_aruid = {};
m_display = {};
+ m_consumer_binder_id = {};
+ m_producer_binder_id = {};
m_is_initialized = {};
}
- void Open(s32 consumer_binder_id, s32 producer_binder_id) {
- m_consumer_binder_id = consumer_binder_id;
- m_producer_binder_id = producer_binder_id;
+ void Open() {
m_is_open = true;
}
void Close() {
- m_producer_binder_id = {};
- m_consumer_binder_id = {};
- m_is_open = {};
+ m_is_open = false;
}
u64 GetId() const {