exporttask: improved progress signalling

This commit is contained in:
itsmattkc
2021-05-13 22:59:36 +10:00
parent 14ae962027
commit 961889b38f
3 changed files with 46 additions and 12 deletions
+26
View File
@@ -80,6 +80,27 @@ protected:
return true;
}
void SetNativeProgressSignallingEnabled(bool e)
{
native_progress_signalling_ = e;
}
/**
* @brief Only valid after Render() is called
*/
int64_t GetTotalNumberOfFrames() const
{
return total_number_of_frames_;
}
/**
* @brief Only valid after Render() is called
*/
int64_t GetTotalNumberOfUniqueFrames() const
{
return total_number_of_unique_frames_;
}
private:
void PrepareWatcher(RenderTicketWatcher* watcher, QThread *thread);
@@ -99,6 +120,11 @@ private:
QMutex finished_watcher_mutex_;
QWaitCondition finished_watcher_wait_cond_;
bool native_progress_signalling_;
int64_t total_number_of_frames_;
int64_t total_number_of_unique_frames_;
private slots:
void TicketDone(RenderTicketWatcher *watcher);