summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/layer.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-21 00:30:47 +0100
committerGitHub <noreply@github.com>2024-02-21 00:30:47 +0100
commitea4a96b45e829364fcfd35b5463823817b1af336 (patch)
treecbbd0ef060e002e573b7dd25db610165633404b6 /src/core/hle/service/vi/layer.h
parentImport keys from filesystem. (#13056) (diff)
parentvi: ignore shared buffer destruction failure on termination (diff)
downloadyuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar.gz
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar.bz2
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar.lz
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar.xz
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.tar.zst
yuzu-ea4a96b45e829364fcfd35b5463823817b1af336.zip
Diffstat (limited to '')
-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 {