diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-08-11 02:35:47 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-08-11 02:35:47 +0200 |
commit | b76ddb7647cbb390cce4143d91a1db171b0fa503 (patch) | |
tree | a6e2e334e82b035923c41458150604dd5fb31d65 /src/core/hle/service/nvflinger/nvflinger.h | |
parent | Added IsUserRegistrationRequestPermitted (diff) | |
parent | Merge pull request #1007 from MerryMage/dynarmic (diff) | |
download | yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar.gz yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar.bz2 yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar.lz yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar.xz yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.tar.zst yuzu-b76ddb7647cbb390cce4143d91a1db171b0fa503.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h index 5374df175..f7112949f 100644 --- a/src/core/hle/service/nvflinger/nvflinger.h +++ b/src/core/hle/service/nvflinger/nvflinger.h @@ -16,6 +16,10 @@ namespace CoreTiming { struct EventType; } +namespace Service::Nvidia { +class Module; +} + namespace Service::NVFlinger { class BufferQueue; @@ -44,6 +48,9 @@ public: NVFlinger(); ~NVFlinger(); + /// Sets the NVDrv module instance to use to send buffers to the GPU. + void SetNVDrvInstance(std::shared_ptr<Nvidia::Module> instance); + /// Opens the specified display and returns the id. u64 OpenDisplay(std::string_view name); @@ -70,6 +77,8 @@ private: /// Returns the layer identified by the specified id in the desired display. Layer& GetLayer(u64 display_id, u64 layer_id); + std::shared_ptr<Nvidia::Module> nvdrv; + std::vector<Display> displays; std::vector<std::shared_ptr<BufferQueue>> buffer_queues; |