From ee8eccc5fa473f2ce210eb4e242e8eca40594db7 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 14 Feb 2024 11:39:42 -0500 Subject: nvnflinger: convert to process --- src/core/hle/service/vi/application_display_service.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/core/hle/service/vi/application_display_service.h') diff --git a/src/core/hle/service/vi/application_display_service.h b/src/core/hle/service/vi/application_display_service.h index 5dff4bb31..e56490f9f 100644 --- a/src/core/hle/service/vi/application_display_service.h +++ b/src/core/hle/service/vi/application_display_service.h @@ -9,26 +9,30 @@ namespace Kernel { class KReadableEvent; } +namespace Service::Nvnflinger { +class Nvnflinger; +class IHOSBinderDriver; +} // namespace Service::Nvnflinger + namespace Service::VI { -class IHOSBinderDriver; class IManagerDisplayService; class ISystemDisplayService; class IApplicationDisplayService final : public ServiceFramework { public: - IApplicationDisplayService(Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger, - Nvnflinger::HosBinderDriverServer& hos_binder_driver_server); + IApplicationDisplayService(Core::System& system_, + std::shared_ptr binder_service); ~IApplicationDisplayService() override; private: - Result GetRelayService(Out> out_relay_service); + Result GetRelayService(Out> out_relay_service); Result GetSystemDisplayService( Out> out_system_display_service); Result GetManagerDisplayService( Out> out_manager_display_service); Result GetIndirectDisplayTransactionService( - Out> out_indirect_display_transaction_service); + Out> out_indirect_display_transaction_service); Result OpenDisplay(Out out_display_id, DisplayName display_name); Result OpenDefaultDisplay(Out out_display_id); Result CloseDisplay(u64 display_id); @@ -56,8 +60,8 @@ private: s64 width, s64 height); private: - Nvnflinger::Nvnflinger& m_nvnflinger; - Nvnflinger::HosBinderDriverServer& m_hos_binder_driver_server; + const std::shared_ptr m_binder_service; + const std::shared_ptr m_surface_flinger; std::vector m_stray_layer_ids; bool m_vsync_event_fetched{false}; }; -- cgit v1.2.3