renderer: share render backend for auto-cache tasks

Since auto-cache events start and stop fairly frequently (and are somewhat
heavy to create/destroy), we can save a lot of cycles over time by sharing
the same backend between them all.
This commit is contained in:
itsmattkc
2020-07-06 14:22:17 +10:00
parent 936d077077
commit a45f514f68
8 changed files with 128 additions and 58 deletions
+15
View File
@@ -43,6 +43,11 @@ public:
void Close();
ViewerOutput* GetViewerNode() const
{
return viewer_node_;
}
void SetViewerNode(ViewerOutput* viewer_node);
void SetUpdateWithGraph(bool e)
@@ -81,6 +86,16 @@ public:
*/
RenderTicketPtr RenderAudio(const TimeRange& r);
const VideoParams& GetVideoParams() const
{
return video_params_;
}
const AudioParams& GetAudioParams() const
{
return audio_params_;
}
void SetVideoParams(const VideoParams& params);
void SetAudioParams(const AudioParams& params);