#include <task_runner_window.h>
Definition at line 20 of file task_runner_window.h.
◆ ~TaskRunnerWindow()
flutter::TaskRunnerWindow::~TaskRunnerWindow |
( |
| ) |
|
Definition at line 35 of file task_runner_window.cc.
35 {
36 if (window_handle_) {
37 DestroyWindow(window_handle_);
38 window_handle_ = nullptr;
39 }
40 UnregisterClass(window_class_name_.c_str(), nullptr);
41}
◆ AddDelegate()
void flutter::TaskRunnerWindow::AddDelegate |
( |
Delegate * |
delegate | ) |
|
Definition at line 60 of file task_runner_window.cc.
60 {
61 delegates_.push_back(delegate);
62 SetTimer(std::chrono::nanoseconds::zero());
63}
◆ GetSharedInstance()
std::shared_ptr< TaskRunnerWindow > flutter::TaskRunnerWindow::GetSharedInstance |
( |
| ) |
|
|
static |
Definition at line 43 of file task_runner_window.cc.
43 {
44 static std::weak_ptr<TaskRunnerWindow>
instance;
46 if (!res) {
47
48 res.reset(new TaskRunnerWindow());
50 }
51 return res;
52}
◆ RemoveDelegate()
void flutter::TaskRunnerWindow::RemoveDelegate |
( |
Delegate * |
delegate | ) |
|
Definition at line 65 of file task_runner_window.cc.
65 {
66 auto i =
std::find(delegates_.begin(), delegates_.end(), delegate);
67 if (
i != delegates_.end()) {
69 }
70}
int find(T *array, int N, T item)
◆ WakeUp()
void flutter::TaskRunnerWindow::WakeUp |
( |
| ) |
|
The documentation for this class was generated from the following files: