summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvnflinger/nvnflinger.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-09-29 07:45:49 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-10-01 19:38:30 +0200
commit35f25882e027fd3c466edd44db1fc1c5bec75bde (patch)
tree8f7be0d40cc8ebb2bbbb8fec4113293bc72f5071 /src/core/hle/service/nvnflinger/nvnflinger.h
parentservice: ldn: Implement lp2p:m and stub IMonitorService (diff)
downloadyuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar.gz
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar.bz2
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar.lz
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar.xz
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.tar.zst
yuzu-35f25882e027fd3c466edd44db1fc1c5bec75bde.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;