| 102 | } |
| 103 | |
| 104 | static napi_value StopDrawLoop(napi_env, napi_callback_info) { |
| 105 | if (displayLink != nullptr) { |
| 106 | displayLink->stop(); |
| 107 | } |
| 108 | return nullptr; |
| 109 | } |
| 110 | |
| 111 | static std::shared_ptr<drawers::AppHost> CreateAppHost() { |
| 112 | auto appHost = std::make_shared<drawers::AppHost>(); |