| 107 | } |
| 108 | |
| 109 | void SdlAFVideoRender::delayRefreshScreen() |
| 110 | { |
| 111 | std::thread thread([=]() { |
| 112 | std::this_thread::sleep_for(std::chrono::milliseconds(50)); |
| 113 | { |
| 114 | std::unique_lock<std::mutex> lock(mRenderMutex); |
| 115 | if (mLastVideoFrame == nullptr && mBackFrame != nullptr) { |
| 116 | mLastVideoFrame = mBackFrame->clone(); |
| 117 | } |
| 118 | } |
| 119 | }); |
| 120 | thread.detach(); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | int SdlAFVideoRender::clearScreen() |
no test coverage detected