#include "context.h"
#include "print_latency.h"
+#include "quittable_sleeper.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
movit::ResourcePool *resource_pool;
// These members are persistently allocated, and reused when the frame object is.
- GLuint uyvy_tex; // Owned by <resource_pool>.
+ GLuint uyvy_tex; // Owned by <resource_pool>. Can also hold v210 data.
GLuint pbo;
uint8_t *uyvy_ptr; // Persistent mapping into the PBO.
std::map<uint32_t, bmusb::VideoMode> video_modes;
std::thread present_thread;
- std::atomic<bool> should_quit{false};
+ QuittableSleeper should_quit;
std::mutex frame_queue_mutex;
std::queue<std::unique_ptr<Frame>> pending_video_frames; // Under <frame_queue_mutex>.