renderer: re-use already created textures if the images are known not to change

This commit is contained in:
itsmattkc
2020-02-25 14:57:49 +11:00
parent 5404fa628d
commit faffbb0f38
14 changed files with 118 additions and 98 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ OpenGLWorker::OpenGLWorker(VideoRenderFrameCache *frame_cache, DecoderCache* dec
{
}
void OpenGLWorker::FrameToValue(StreamPtr stream, FramePtr frame, NodeValueTable *table)
void OpenGLWorker::FrameToValue(DecoderPtr decoder, StreamPtr stream, const TimeRange &range, NodeValueTable *table)
{
emit RequestFrameToValue(stream, frame, table);
emit RequestFrameToValue(decoder, stream, range, table);
}
void OpenGLWorker::RunNodeAccelerated(const Node *node, const TimeRange &range, const NodeValueDatabase &input_params, NodeValueTable *output_params)