moonlight-qt/app/streaming/video/ffmpeg-renderers/pacer/dxvsyncsource.h

21 lines
332 B
C
Raw Normal View History

#pragma once
#include "pacer.h"
class DxVsyncSource : public IVsyncSource
{
public:
DxVsyncSource(Pacer* pacer);
virtual ~DxVsyncSource();
virtual bool initialize(SDL_Window* window);
private:
static int vsyncThread(void* context);
Pacer* m_Pacer;
SDL_Thread* m_Thread;
SDL_atomic_t m_Stopping;
};