Rework wivrn_session to be a xrt_system_devices

This will allow changing roles dynamically, and fixes some object
lifetime issues.
This commit is contained in:
Patrick Nicolas
2024-10-08 20:10:39 +02:00
parent fb66a99f14
commit 849eeb7a80
8 changed files with 163 additions and 135 deletions
+2 -2
View File
@@ -98,10 +98,10 @@ struct wivrn_comp_target : public comp_target
std::list<std::jthread> encoder_threads;
std::vector<std::shared_ptr<VideoEncoder>> encoders;
std::shared_ptr<wivrn::wivrn_session> cnx;
wivrn::wivrn_session & cnx;
std::unique_ptr<wivrn_foveation_renderer> foveation_renderer = nullptr;
wivrn_comp_target(std::shared_ptr<wivrn::wivrn_session> cnx, struct comp_compositor * c, float fps);
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c, float fps);
~wivrn_comp_target();
void on_feedback(const from_headset::feedback &, const clock_offset &);