summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/layer/vi_layer.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-16 19:57:42 +0100
committerGitHub <noreply@github.com>2023-12-16 19:57:42 +0100
commit4bf1f217ae28357e753f7e9cadd0a1baf05d2192 (patch)
treee79b98addebcfb55e228248571891bf5ccc25706 /src/core/hle/service/vi/layer/vi_layer.h
parentMerge pull request #12184 from Kelebek1/system_settings (diff)
parentvi: fix confusion between closing and destroying layers (diff)
downloadyuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar.gz
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar.bz2
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar.lz
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar.xz
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.tar.zst
yuzu-4bf1f217ae28357e753f7e9cadd0a1baf05d2192.zip
Diffstat (limited to 'src/core/hle/service/vi/layer/vi_layer.h')
-rw-r--r--src/core/hle/service/vi/layer/vi_layer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/layer/vi_layer.h b/src/core/hle/service/vi/layer/vi_layer.h
index 8cf1b5275..295005e23 100644
--- a/src/core/hle/service/vi/layer/vi_layer.h
+++ b/src/core/hle/service/vi/layer/vi_layer.h
@@ -71,12 +71,25 @@ public:
return core;
}
+ bool IsOpen() const {
+ return open;
+ }
+
+ void Close() {
+ open = false;
+ }
+
+ void Open() {
+ open = true;
+ }
+
private:
const u64 layer_id;
const u32 binder_id;
android::BufferQueueCore& core;
android::BufferQueueProducer& binder;
std::shared_ptr<android::BufferItemConsumer> consumer;
+ bool open;
};
} // namespace Service::VI