Allow a renderer to opt-out of the render thread and use that for SDL on OGL

This commit is contained in:
Cameron Gutman
2019-04-09 21:46:14 -07:00
parent 6783cf57da
commit 859a5a5e0c
17 changed files with 134 additions and 79 deletions
@@ -26,9 +26,15 @@ public:
void vsyncCallback(int timeUntilNextVsyncMillis);
void renderOnMainThread();
private:
static int renderThread(void* context);
void enqueueFrameForRenderingAndUnlock(AVFrame* frame);
void renderLastFrameAndUnlock();
void renderFrame(AVFrame* frame);
void dropFrameForEnqueue(QQueue<AVFrame*>& queue);