summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvnflinger/nvnflinger.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-02 01:24:46 +0200
committerGitHub <noreply@github.com>2023-10-02 01:24:46 +0200
commit99e2568304cc008213b30677eade0522b49f8a92 (patch)
tree222e308f4b1a3edb95db47df9ab11a3ee051e453 /src/core/hle/service/nvnflinger/nvnflinger.h
parentMerge pull request #11646 from FernandoS27/stop-ignoring-your-mental-health (diff)
parentservice: nfc: Implement SetRegisterInfoPrivate mii support (diff)
downloadyuzu-99e2568304cc008213b30677eade0522b49f8a92.tar
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.gz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.bz2
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.lz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.xz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.zst
yuzu-99e2568304cc008213b30677eade0522b49f8a92.zip
Diffstat (limited to 'src/core/hle/service/nvnflinger/nvnflinger.h')
-rw-r--r--src/core/hle/service/nvnflinger/nvnflinger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.h b/src/core/hle/service/nvnflinger/nvnflinger.h
index f478c2bc6..14c783582 100644
--- a/src/core/hle/service/nvnflinger/nvnflinger.h
+++ b/src/core/hle/service/nvnflinger/nvnflinger.h
@@ -45,6 +45,9 @@ class BufferQueueProducer;
namespace Service::Nvnflinger {
+class FbShareBufferManager;
+class HosBinderDriverServer;
+
class Nvnflinger final {
public:
explicit Nvnflinger(Core::System& system_, HosBinderDriverServer& hos_binder_driver_server_);
@@ -90,12 +93,16 @@ public:
[[nodiscard]] s64 GetNextTicks() const;
+ FbShareBufferManager& GetSystemBufferManager();
+
private:
struct Layer {
std::unique_ptr<android::BufferQueueCore> core;
std::unique_ptr<android::BufferQueueProducer> producer;
};
+ friend class FbShareBufferManager;
+
private:
[[nodiscard]] std::unique_lock<std::mutex> Lock() const {
return std::unique_lock{*guard};
@@ -140,6 +147,8 @@ private:
std::shared_ptr<Core::Timing::EventType> multi_composition_event;
std::shared_ptr<Core::Timing::EventType> single_composition_event;
+ std::unique_ptr<FbShareBufferManager> system_buffer_manager;
+
std::shared_ptr<std::mutex> guard;
Core::System& system;