exporttask: improved progress signalling
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user