| 422 | } |
| 423 | |
| 424 | void ReplayManager::PushInvoke(ReplayManager::InvokeHandle *cmd) |
| 425 | { |
| 426 | if(m_Thread == NULL || !m_Thread->isRunning() || !m_Running) |
| 427 | { |
| 428 | if(cmd->selfdelete) |
| 429 | delete cmd; |
| 430 | else |
| 431 | cmd->processed.release(); |
| 432 | return; |
| 433 | } |
| 434 | |
| 435 | QMutexLocker autolock(&m_RenderLock); |
| 436 | m_RenderQueue.enqueue(cmd); |
| 437 | m_RenderCondition.wakeAll(); |
| 438 | } |
| 439 | |
| 440 | void ReplayManager::run(int proxyRenderer, const QString &capturefile, const ReplayOptions &opts, |
| 441 | RENDERDOC_ProgressCallback progress) |