Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::EngineModifier Class Reference

#include <engine_modifier.h>

Public Member Functions

 EngineModifier (FlutterWindowsEngine *engine)
 
FlutterEngineProcTableembedder_api ()
 
void SetEGLManager (std::unique_ptr< egl::Manager > egl_manager)
 
void SetImplicitView (FlutterWindowsView *view)
 
void SetStartTime (uint64_t start_time_nanos)
 Reset the start_time field that is used to align vsync events. More...
 
void SetFrameInterval (uint64_t frame_interval_nanos)
 
void ReleaseEGLManager ()
 
void Restart ()
 
void InitializeKeyboard ()
 
void SetLifecycleManager (std::unique_ptr< WindowsLifecycleManager > &&handler)
 
void SetPlatformViewPlugin (std::unique_ptr< PlatformViewPlugin > &&manager)
 

Detailed Description

Definition at line 22 of file engine_modifier.h.

Constructor & Destructor Documentation

◆ EngineModifier()

flutter::EngineModifier::EngineModifier ( FlutterWindowsEngine engine)
inlineexplicit

Definition at line 24 of file engine_modifier.h.

24: engine_(engine) {}
FlutterEngine engine
Definition: main.cc:68

Member Function Documentation

◆ embedder_api()

FlutterEngineProcTable & flutter::EngineModifier::embedder_api ( )
inline

Definition at line 30 of file engine_modifier.h.

30{ return engine_->embedder_api_; }

◆ InitializeKeyboard()

void flutter::EngineModifier::InitializeKeyboard ( )
inline

Definition at line 75 of file engine_modifier.h.

75{ engine_->InitializeKeyboard(); }

◆ ReleaseEGLManager()

void flutter::EngineModifier::ReleaseEGLManager ( )
inline

Definition at line 67 of file engine_modifier.h.

67{ engine_->egl_manager_.release(); }

◆ Restart()

void flutter::EngineModifier::Restart ( )
inline

Definition at line 71 of file engine_modifier.h.

◆ SetEGLManager()

void flutter::EngineModifier::SetEGLManager ( std::unique_ptr< egl::Manager egl_manager)
inline

Definition at line 36 of file engine_modifier.h.

36 {
37 engine_->egl_manager_ = std::move(egl_manager);
38 }

◆ SetFrameInterval()

void flutter::EngineModifier::SetFrameInterval ( uint64_t  frame_interval_nanos)
inline

Override the frame interval to the provided nanosecond interval.

This will prevent the windows engine from delegating to dwm to discover the true frame interval, which can vary across machines.

Definition at line 55 of file engine_modifier.h.

55 {
56 engine_->frame_interval_override_ =
57 std::optional<std::chrono::nanoseconds>(frame_interval_nanos);
58 }

◆ SetImplicitView()

void flutter::EngineModifier::SetImplicitView ( FlutterWindowsView view)
inline

Definition at line 42 of file engine_modifier.h.

42 {
43 engine_->views_[kImplicitViewId] = view;
44 }
constexpr FlutterViewId kImplicitViewId

◆ SetLifecycleManager()

void flutter::EngineModifier::SetLifecycleManager ( std::unique_ptr< WindowsLifecycleManager > &&  handler)
inline

Definition at line 77 of file engine_modifier.h.

77 {
78 engine_->lifecycle_manager_ = std::move(handler);
79 }

◆ SetPlatformViewPlugin()

void flutter::EngineModifier::SetPlatformViewPlugin ( std::unique_ptr< PlatformViewPlugin > &&  manager)
inline

Definition at line 81 of file engine_modifier.h.

81 {
82 engine_->platform_view_plugin_ = std::move(manager);
83 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager
Definition: switches.h:218

◆ SetStartTime()

void flutter::EngineModifier::SetStartTime ( uint64_t  start_time_nanos)
inline

Reset the start_time field that is used to align vsync events.

Definition at line 47 of file engine_modifier.h.

47 {
48 engine_->start_time_ = std::chrono::nanoseconds(start_time_nanos);
49 }

The documentation for this class was generated from the following file: