| 27 | } |
| 28 | |
| 29 | void GrPluginContext::PostWorkTask(std::function<void()>&& task) { |
| 30 | if (work_thread_) { |
| 31 | work_thread_->Post(std::move(task)); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | void GrPluginContext::PostUITask(std::function<void()>&& task) { |
| 36 | QMetaObject::invokeMethod(this, [t = std::move(task)]() { |
no outgoing calls
no test coverage detected