summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger/nvflinger.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 17:58:45 +0200
committerGitHub <noreply@github.com>2018-08-08 17:58:45 +0200
commit448264e7195ef3075b39ea6aa410818ff956cf96 (patch)
tree1acd49ca071c8a0433a68bd875fec2814c7f8723 /src/core/hle/service/nvflinger/nvflinger.h
parentMerge pull request #972 from lioncash/catch (diff)
parentnvdrv: Get rid of global std::weak_ptr (diff)
downloadyuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar.gz
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar.bz2
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar.lz
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar.xz
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.tar.zst
yuzu-448264e7195ef3075b39ea6aa410818ff956cf96.zip
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.h')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h9
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;