| 133 | } |
| 134 | |
| 135 | void GrContext::PostUIDelayTask(std::function<void()>&& task, int ms) { |
| 136 | this->PostUITask([ms, t = std::move(task)]() { |
| 137 | QTimer::singleShot(ms, [=]() { |
| 138 | t(); |
| 139 | }); |
| 140 | }); |
| 141 | } |
| 142 | |
| 143 | void GrContext::PostDelayTask(std::function<void()>&& task, int ms) { |
| 144 | this->PostUIDelayTask([=, this]() { |
no test coverage detected