#ifndef RUNNER_FLUTTER_WINDOW_H_ #define RUNNER_FLUTTER_WINDOW_H_ #include #include #include #include #include #include #include "screen_encoder.h" #include "video_decoder.h" #include "win32_window.h" class FlutterWindow : public Win32Window { public: explicit FlutterWindow(const flutter::DartProject& project); virtual ~FlutterWindow(); protected: bool OnCreate() override; void OnDestroy() override; LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, LPARAM const lparam) noexcept override; private: flutter::DartProject project_; std::unique_ptr flutter_controller_; FlutterDesktopTextureRegistrarRef tex_reg_ = nullptr; std::unique_ptr screen_encoder_; std::map> decoders_; }; #endif // RUNNER_FLUTTER_WINDOW_H_