Flutter Engine
The Flutter Engine
|
The subset of state which is owned by the shell or engine and passed through the RuntimeController into DartIsolates. If a shell-owned resource needs to be exposed to the framework via UIDartState, a pointer to the resource can be added to this struct with appropriate default construction. More...
#include <ui_dart_state.h>
Public Member Functions | |
Context (const TaskRunners &task_runners) | |
Context (const TaskRunners &task_runners, fml::TaskRunnerAffineWeakPtr< SnapshotDelegate > snapshot_delegate, fml::WeakPtr< IOManager > io_manager, fml::RefPtr< SkiaUnrefQueue > unref_queue, fml::WeakPtr< ImageDecoder > image_decoder, fml::WeakPtr< ImageGeneratorRegistry > image_generator_registry, std::string advisory_script_uri, std::string advisory_script_entrypoint, std::shared_ptr< VolatilePathTracker > volatile_path_tracker, std::shared_ptr< fml::ConcurrentTaskRunner > concurrent_task_runner, bool enable_impeller, impeller::RuntimeStageBackend runtime_stage_backend) | |
Public Attributes | |
const TaskRunners | task_runners |
fml::TaskRunnerAffineWeakPtr< SnapshotDelegate > | snapshot_delegate |
fml::WeakPtr< IOManager > | io_manager |
The IO manager used by the isolate for asynchronous texture uploads. More... | |
fml::RefPtr< SkiaUnrefQueue > | unref_queue |
fml::WeakPtr< ImageDecoder > | image_decoder |
The image decoder. More... | |
fml::WeakPtr< ImageGeneratorRegistry > | image_generator_registry |
std::string | advisory_script_uri |
std::string | advisory_script_entrypoint |
std::shared_ptr< VolatilePathTracker > | volatile_path_tracker |
Cache for tracking path volatility. More... | |
std::shared_ptr< fml::ConcurrentTaskRunner > | concurrent_task_runner |
bool | enable_impeller = false |
Whether Impeller is enabled or not. More... | |
impeller::RuntimeStageBackend | runtime_stage_backend |
The expected backend for runtime stage shaders. More... | |
The subset of state which is owned by the shell or engine and passed through the RuntimeController into DartIsolates. If a shell-owned resource needs to be exposed to the framework via UIDartState, a pointer to the resource can be added to this struct with appropriate default construction.
Definition at line 45 of file ui_dart_state.h.
|
explicit |
Definition at line 29 of file ui_dart_state.cc.
flutter::UIDartState::Context::Context | ( | const TaskRunners & | task_runners, |
fml::TaskRunnerAffineWeakPtr< SnapshotDelegate > | snapshot_delegate, | ||
fml::WeakPtr< IOManager > | io_manager, | ||
fml::RefPtr< SkiaUnrefQueue > | unref_queue, | ||
fml::WeakPtr< ImageDecoder > | image_decoder, | ||
fml::WeakPtr< ImageGeneratorRegistry > | image_generator_registry, | ||
std::string | advisory_script_uri, | ||
std::string | advisory_script_entrypoint, | ||
std::shared_ptr< VolatilePathTracker > | volatile_path_tracker, | ||
std::shared_ptr< fml::ConcurrentTaskRunner > | concurrent_task_runner, | ||
bool | enable_impeller, | ||
impeller::RuntimeStageBackend | runtime_stage_backend | ||
) |
Definition at line 32 of file ui_dart_state.cc.
std::string flutter::UIDartState::Context::advisory_script_entrypoint |
The advisory script entrypoint (only used for debugging). This does not affect the code being run in the isolate in any way. The isolate must be transitioned to the running state explicitly by the caller.
Definition at line 93 of file ui_dart_state.h.
std::string flutter::UIDartState::Context::advisory_script_uri |
The advisory script URI (only used for debugging). This does not affect the code being run in the isolate in any way.
Definition at line 88 of file ui_dart_state.h.
std::shared_ptr<fml::ConcurrentTaskRunner> flutter::UIDartState::Context::concurrent_task_runner |
The task runner whose tasks may be executed concurrently on a pool of shared worker threads.
Definition at line 100 of file ui_dart_state.h.
bool flutter::UIDartState::Context::enable_impeller = false |
Whether Impeller is enabled or not.
Definition at line 103 of file ui_dart_state.h.
fml::WeakPtr<ImageDecoder> flutter::UIDartState::Context::image_decoder |
The image decoder.
Definition at line 79 of file ui_dart_state.h.
fml::WeakPtr<ImageGeneratorRegistry> flutter::UIDartState::Context::image_generator_registry |
Cascading registry of image generator builders. Given compressed image bytes as input, this is used to find and create image generators, which can then be used for image decoding.
Definition at line 84 of file ui_dart_state.h.
fml::WeakPtr<IOManager> flutter::UIDartState::Context::io_manager |
The IO manager used by the isolate for asynchronous texture uploads.
Definition at line 72 of file ui_dart_state.h.
impeller::RuntimeStageBackend flutter::UIDartState::Context::runtime_stage_backend |
The expected backend for runtime stage shaders.
Definition at line 106 of file ui_dart_state.h.
fml::TaskRunnerAffineWeakPtr<SnapshotDelegate> flutter::UIDartState::Context::snapshot_delegate |
The snapshot delegate used by the isolate to gather raster snapshots of Flutter view hierarchies.
Definition at line 69 of file ui_dart_state.h.
const TaskRunners flutter::UIDartState::Context::task_runners |
The task runners used by the shell hosting this runtime controller. This may be used by the isolate to scheduled asynchronous texture uploads or post tasks to the platform task runner.
Definition at line 64 of file ui_dart_state.h.
fml::RefPtr<SkiaUnrefQueue> flutter::UIDartState::Context::unref_queue |
The unref queue used by the isolate to collect resources that may reference resources on the GPU.
Definition at line 76 of file ui_dart_state.h.
std::shared_ptr<VolatilePathTracker> flutter::UIDartState::Context::volatile_path_tracker |
Cache for tracking path volatility.
Definition at line 96 of file ui_dart_state.h.