Allow a renderer to opt-out of the render thread and use that for SDL on OGL
This commit is contained in:
parent
6783cf57da
commit
859a5a5e0c
17 changed files with 134 additions and 79 deletions
|
|
@ -630,14 +630,8 @@ int FFmpegVideoDecoder::submitDecodeUnit(PDECODE_UNIT du)
|
|||
return DR_OK;
|
||||
}
|
||||
|
||||
// Called on main thread
|
||||
void FFmpegVideoDecoder::renderFrame(SDL_UserEvent*)
|
||||
void FFmpegVideoDecoder::renderFrameOnMainThread()
|
||||
{
|
||||
SDL_assert(false);
|
||||
m_Pacer->renderOnMainThread();
|
||||
}
|
||||
|
||||
// Called on main thread
|
||||
void FFmpegVideoDecoder::dropFrame(SDL_UserEvent*)
|
||||
{
|
||||
SDL_assert(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue