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:
@@ -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 &);
|
||||
|
||||
Reference in New Issue
Block a user