| 18 | } |
| 19 | |
| 20 | void GrPluginContext::OnDestroy() { |
| 21 | if (work_thread_) { |
| 22 | work_thread_->Exit(); |
| 23 | } |
| 24 | if (timer_) { |
| 25 | timer_->stop_all_timers(); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | void GrPluginContext::PostWorkTask(std::function<void()>&& task) { |
| 30 | if (work_thread_) { |