Flutter Engine
The Flutter Engine
|
Used to forward events from the rasterizer to interested subsystems. Currently, the shell sets itself up as the rasterizer delegate to listen for frame rasterization events. It can then forward these events to the engine. More...
#include <rasterizer.h>
Public Member Functions | |
virtual void | OnFrameRasterized (const FrameTiming &frame_timing)=0 |
Notifies the delegate that a frame has been rendered. The rasterizer collects profiling information for each part of the frame workload. This profiling information is made available to the delegate for forwarding to subsystems interested in collecting such profiles. Currently, the shell (the delegate) forwards this to the engine where Dart code can react to this information. More... | |
virtual fml::Milliseconds | GetFrameBudget ()=0 |
virtual fml::TimePoint | GetLatestFrameTargetTime () const =0 |
virtual const TaskRunners & | GetTaskRunners () const =0 |
Task runners used by the shell. More... | |
virtual const fml::RefPtr< fml::RasterThreadMerger > | GetParentRasterThreadMerger () const =0 |
The raster thread merger from parent shell's rasterizer. More... | |
virtual std::shared_ptr< const fml::SyncSwitch > | GetIsGpuDisabledSyncSwitch () const =0 |
virtual const Settings & | GetSettings () const =0 |
virtual bool | ShouldDiscardLayerTree (int64_t view_id, const flutter::LayerTree &tree)=0 |
Used to forward events from the rasterizer to interested subsystems. Currently, the shell sets itself up as the rasterizer delegate to listen for frame rasterization events. It can then forward these events to the engine.
Like all rasterizer operation, the rasterizer delegate call are made on the raster task runner. Any delegate must ensure that they can handle the threading implications.
Definition at line 128 of file rasterizer.h.
|
pure virtual |
Time limit for a smooth frame.
|
pure virtual |
Accessor for the shell's GPU sync switch, which determines whether GPU operations are allowed on the current thread.
For example, on some platforms when the application is backgrounded it is critical that GPU operations are not processed.
Implemented in flutter::Shell.
|
pure virtual |
Target time for the latest frame. See also Shell::OnAnimatorBeginFrame
for when this time gets updated.
|
pure virtual |
The raster thread merger from parent shell's rasterizer.
Implemented in flutter::Shell.
|
pure virtual |
Implemented in flutter::Shell.
|
pure virtual |
Task runners used by the shell.
Implemented in flutter::Shell.
|
pure virtual |
Notifies the delegate that a frame has been rendered. The rasterizer collects profiling information for each part of the frame workload. This profiling information is made available to the delegate for forwarding to subsystems interested in collecting such profiles. Currently, the shell (the delegate) forwards this to the engine where Dart code can react to this information.
FrameTiming
[in] | frame_timing | Instrumentation information for each phase of the frame workload. |
|
pure virtual |