Plumb the ability to disable V-sync through the video renderers

This commit is contained in:
Cameron Gutman 2018-08-20 18:19:42 -07:00
commit f7d3c10c9d
18 changed files with 90 additions and 49 deletions

View file

@ -17,7 +17,8 @@ public:
int videoFormat,
int width,
int height,
int maxFps) override;
int maxFps,
bool enableVsync) override;
virtual bool isHardwareAccelerated() override;
virtual int submitDecodeUnit(PDECODE_UNIT du) override;
virtual void renderFrame(SDL_UserEvent* event) override;
@ -28,7 +29,7 @@ public:
private:
bool completeInitialization(AVCodec* decoder, SDL_Window* window,
int videoFormat, int width, int height,
int maxFps, bool testOnly);
int maxFps, bool enableVsync, bool testOnly);
IFFmpegRenderer* createAcceleratedRenderer(const AVCodecHWConfig* hwDecodeCfg);