Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
flutter::Settings Struct Reference

#include <settings.h>

Public Member Functions

 Settings ()
 
 Settings (const Settings &other)
 
 ~Settings ()
 

Public Attributes

std::string vm_snapshot_data_path
 
MappingCallback vm_snapshot_data
 
std::string vm_snapshot_instr_path
 
MappingCallback vm_snapshot_instr
 
std::string isolate_snapshot_data_path
 
MappingCallback isolate_snapshot_data
 
std::string isolate_snapshot_instr_path
 
MappingCallback isolate_snapshot_instr
 
std::string route
 
MappingCallback dart_library_sources_kernel
 
std::vector< std::string > application_library_path
 
std::vector< std::string > vmservice_snapshot_library_path
 
std::string application_kernel_asset
 
std::string application_kernel_list_asset
 
MappingsCallback application_kernels
 
std::string temp_directory_path
 
std::vector< std::string > dart_flags
 
bool enable_checked_mode = false
 
bool start_paused = false
 
bool trace_skia = false
 
std::vector< std::string > trace_allowlist
 
std::optional< std::vector< std::string > > trace_skia_allowlist
 
bool trace_startup = false
 
bool trace_systrace = false
 
std::string trace_to_file
 
bool enable_timeline_event_handler = true
 
bool dump_skp_on_shader_compilation = false
 
bool cache_sksl = false
 
bool purge_persistent_cache = false
 
bool endless_trace_buffer = false
 
bool enable_dart_profiling = false
 
bool disable_dart_asserts = false
 
bool enable_serial_gc = false
 
bool may_insecurely_connect_to_all_domains = true
 
std::string domain_network_policy
 
std::string advisory_script_uri = "main.dart"
 
std::string advisory_script_entrypoint = "main"
 
std::string executable_name = "Flutter"
 
bool enable_vm_service = false
 
bool enable_vm_service_publication = true
 
std::string vm_service_host
 
uint32_t vm_service_port = 0
 
bool disable_service_auth_codes = true
 
bool enable_service_port_fallback = false
 
bool use_test_fonts = false
 
bool use_asset_fonts = true
 
bool prefetched_default_font_manager = false
 
bool enable_wide_gamut = false
 
bool enable_impeller = false
 
bool warn_on_impeller_opt_out = false
 
AndroidRenderingAPI android_rendering_api
 
std::optional< std::string > requested_rendering_backend
 
bool enable_vulkan_validation = false
 
bool enable_opengl_gpu_tracing = false
 
bool enable_vulkan_gpu_tracing = false
 
uint32_t font_initialization_data = 0
 
bool leak_vm = true
 
TaskObserverAdd task_observer_add
 
TaskObserverRemove task_observer_remove
 
std::function< void(const DartIsolate &)> root_isolate_create_callback
 
fml::closure isolate_create_callback
 
fml::closure root_isolate_shutdown_callback
 
fml::closure isolate_shutdown_callback
 
fml::closure service_isolate_create_callback
 
std::function< void(int64_t)> idle_notification_callback
 
UnhandledExceptionCallback unhandled_exception_callback
 
LogMessageCallback log_message_callback
 
bool enable_software_rendering = false
 
bool skia_deterministic_rendering_on_cpu = false
 
bool verbose_logging = false
 
std::string log_tag = "flutter"
 
bool icu_initialization_required = true
 
std::string icu_data_path
 
MappingCallback icu_mapper
 
fml::UniqueFD::element_type assets_dir
 
std::string assets_path
 
FrameRasterizedCallback frame_rasterized_callback
 
std::shared_ptr< const fml::Mappingpersistent_isolate_data
 
int64_t old_gen_heap_size = -1
 
size_t resource_cache_max_bytes_threshold = 0
 
bool enable_embedder_api = false
 
bool enable_platform_isolates = false
 

Static Public Attributes

static constexpr bool kSurfaceDataAccessible
 

Detailed Description

Definition at line 104 of file settings.h.

Constructor & Destructor Documentation

◆ Settings() [1/2]

flutter::Settings::Settings ( )
default

◆ Settings() [2/2]

flutter::Settings::Settings ( const Settings other)
default

◆ ~Settings()

flutter::Settings::~Settings ( )
default

Member Data Documentation

◆ advisory_script_entrypoint

std::string flutter::Settings::advisory_script_entrypoint = "main"

Definition at line 180 of file settings.h.

◆ advisory_script_uri

std::string flutter::Settings::advisory_script_uri = "main.dart"

Definition at line 177 of file settings.h.

◆ android_rendering_api

AndroidRenderingAPI flutter::Settings::android_rendering_api
Initial value:

Definition at line 236 of file settings.h.

◆ application_kernel_asset

std::string flutter::Settings::application_kernel_asset

Definition at line 146 of file settings.h.

◆ application_kernel_list_asset

std::string flutter::Settings::application_kernel_list_asset

Definition at line 147 of file settings.h.

◆ application_kernels

MappingsCallback flutter::Settings::application_kernels

Definition at line 148 of file settings.h.

◆ application_library_path

std::vector<std::string> flutter::Settings::application_library_path

Definition at line 140 of file settings.h.

◆ assets_dir

fml::UniqueFD::element_type flutter::Settings::assets_dir
Initial value:

Definition at line 323 of file settings.h.

◆ assets_path

std::string flutter::Settings::assets_path

Definition at line 325 of file settings.h.

◆ cache_sksl

bool flutter::Settings::cache_sksl = false

Definition at line 163 of file settings.h.

◆ dart_flags

std::vector<std::string> flutter::Settings::dart_flags

Definition at line 151 of file settings.h.

◆ dart_library_sources_kernel

MappingCallback flutter::Settings::dart_library_sources_kernel

Definition at line 135 of file settings.h.

◆ disable_dart_asserts

bool flutter::Settings::disable_dart_asserts = false

Definition at line 167 of file settings.h.

◆ disable_service_auth_codes

bool flutter::Settings::disable_service_auth_codes = true

Definition at line 206 of file settings.h.

◆ domain_network_policy

std::string flutter::Settings::domain_network_policy

Definition at line 173 of file settings.h.

◆ dump_skp_on_shader_compilation

bool flutter::Settings::dump_skp_on_shader_compilation = false

Definition at line 162 of file settings.h.

◆ enable_checked_mode

bool flutter::Settings::enable_checked_mode = false

Definition at line 153 of file settings.h.

◆ enable_dart_profiling

bool flutter::Settings::enable_dart_profiling = false

Definition at line 166 of file settings.h.

◆ enable_embedder_api

bool flutter::Settings::enable_embedder_api = false

Enable embedder api on the embedder.

This is currently only used by iOS.

Definition at line 352 of file settings.h.

◆ enable_impeller

bool flutter::Settings::enable_impeller = false

Definition at line 229 of file settings.h.

◆ enable_opengl_gpu_tracing

bool flutter::Settings::enable_opengl_gpu_tracing = false

Definition at line 248 of file settings.h.

◆ enable_platform_isolates

bool flutter::Settings::enable_platform_isolates = false

Enable support for isolates that run on the platform thread.

This is used by the runOnPlatformThread API.

Definition at line 357 of file settings.h.

◆ enable_serial_gc

bool flutter::Settings::enable_serial_gc = false

Definition at line 168 of file settings.h.

◆ enable_service_port_fallback

bool flutter::Settings::enable_service_port_fallback = false

Definition at line 210 of file settings.h.

◆ enable_software_rendering

bool flutter::Settings::enable_software_rendering = false

Definition at line 309 of file settings.h.

◆ enable_timeline_event_handler

bool flutter::Settings::enable_timeline_event_handler = true

Definition at line 161 of file settings.h.

◆ enable_vm_service

bool flutter::Settings::enable_vm_service = false

Definition at line 189 of file settings.h.

◆ enable_vm_service_publication

bool flutter::Settings::enable_vm_service_publication = true

Definition at line 194 of file settings.h.

◆ enable_vulkan_gpu_tracing

bool flutter::Settings::enable_vulkan_gpu_tracing = false

Definition at line 251 of file settings.h.

◆ enable_vulkan_validation

bool flutter::Settings::enable_vulkan_validation = false

Definition at line 244 of file settings.h.

◆ enable_wide_gamut

bool flutter::Settings::enable_wide_gamut = false

Definition at line 222 of file settings.h.

◆ endless_trace_buffer

bool flutter::Settings::endless_trace_buffer = false

Definition at line 165 of file settings.h.

◆ executable_name

std::string flutter::Settings::executable_name = "Flutter"

Definition at line 184 of file settings.h.

◆ font_initialization_data

uint32_t flutter::Settings::font_initialization_data = 0

Definition at line 254 of file settings.h.

◆ frame_rasterized_callback

FrameRasterizedCallback flutter::Settings::frame_rasterized_callback

Definition at line 329 of file settings.h.

◆ icu_data_path

std::string flutter::Settings::icu_data_path

Definition at line 319 of file settings.h.

◆ icu_initialization_required

bool flutter::Settings::icu_initialization_required = true

Definition at line 318 of file settings.h.

◆ icu_mapper

MappingCallback flutter::Settings::icu_mapper

Definition at line 320 of file settings.h.

◆ idle_notification_callback

std::function<void(int64_t)> flutter::Settings::idle_notification_callback

Definition at line 298 of file settings.h.

◆ isolate_create_callback

fml::closure flutter::Settings::isolate_create_callback

Definition at line 280 of file settings.h.

◆ isolate_shutdown_callback

fml::closure flutter::Settings::isolate_shutdown_callback

Definition at line 284 of file settings.h.

◆ isolate_snapshot_data

MappingCallback flutter::Settings::isolate_snapshot_data

Definition at line 127 of file settings.h.

◆ isolate_snapshot_data_path

std::string flutter::Settings::isolate_snapshot_data_path

Definition at line 126 of file settings.h.

◆ isolate_snapshot_instr

MappingCallback flutter::Settings::isolate_snapshot_instr

Definition at line 129 of file settings.h.

◆ isolate_snapshot_instr_path

std::string flutter::Settings::isolate_snapshot_instr_path

Definition at line 128 of file settings.h.

◆ kSurfaceDataAccessible

constexpr bool flutter::Settings::kSurfaceDataAccessible
staticconstexpr
Initial value:
=
true

Determines if attempts at grabbing the Surface's SurfaceData can be attempted.

Definition at line 113 of file settings.h.

◆ leak_vm

bool flutter::Settings::leak_vm = true

Definition at line 270 of file settings.h.

◆ log_message_callback

LogMessageCallback flutter::Settings::log_message_callback

Definition at line 308 of file settings.h.

◆ log_tag

std::string flutter::Settings::log_tag = "flutter"

Definition at line 312 of file settings.h.

◆ may_insecurely_connect_to_all_domains

bool flutter::Settings::may_insecurely_connect_to_all_domains = true

Definition at line 171 of file settings.h.

◆ old_gen_heap_size

int64_t flutter::Settings::old_gen_heap_size = -1

Max size of old gen heap size in MB, or 0 for unlimited, -1 for default value.

See also: https://github.com/dart-lang/sdk/blob/ca64509108b3e7219c50d6c52877c85ab6a35ff2/runtime/vm/flag_list.h#L150

Definition at line 344 of file settings.h.

◆ persistent_isolate_data

std::shared_ptr<const fml::Mapping> flutter::Settings::persistent_isolate_data

Definition at line 337 of file settings.h.

◆ prefetched_default_font_manager

bool flutter::Settings::prefetched_default_font_manager = false

Definition at line 219 of file settings.h.

◆ purge_persistent_cache

bool flutter::Settings::purge_persistent_cache = false

Definition at line 164 of file settings.h.

◆ requested_rendering_backend

std::optional<std::string> flutter::Settings::requested_rendering_backend

Definition at line 240 of file settings.h.

◆ resource_cache_max_bytes_threshold

size_t flutter::Settings::resource_cache_max_bytes_threshold = 0

Definition at line 347 of file settings.h.

◆ root_isolate_create_callback

std::function<void(const DartIsolate&)> flutter::Settings::root_isolate_create_callback

Definition at line 277 of file settings.h.

◆ root_isolate_shutdown_callback

fml::closure flutter::Settings::root_isolate_shutdown_callback

Definition at line 283 of file settings.h.

◆ route

std::string flutter::Settings::route

Definition at line 131 of file settings.h.

◆ service_isolate_create_callback

fml::closure flutter::Settings::service_isolate_create_callback

Definition at line 292 of file settings.h.

◆ skia_deterministic_rendering_on_cpu

bool flutter::Settings::skia_deterministic_rendering_on_cpu = false

Definition at line 310 of file settings.h.

◆ start_paused

bool flutter::Settings::start_paused = false

Definition at line 154 of file settings.h.

◆ task_observer_add

TaskObserverAdd flutter::Settings::task_observer_add

Definition at line 273 of file settings.h.

◆ task_observer_remove

TaskObserverRemove flutter::Settings::task_observer_remove

Definition at line 274 of file settings.h.

◆ temp_directory_path

std::string flutter::Settings::temp_directory_path

Definition at line 150 of file settings.h.

◆ trace_allowlist

std::vector<std::string> flutter::Settings::trace_allowlist

Definition at line 156 of file settings.h.

◆ trace_skia

bool flutter::Settings::trace_skia = false

Definition at line 155 of file settings.h.

◆ trace_skia_allowlist

std::optional<std::vector<std::string> > flutter::Settings::trace_skia_allowlist

Definition at line 157 of file settings.h.

◆ trace_startup

bool flutter::Settings::trace_startup = false

Definition at line 158 of file settings.h.

◆ trace_systrace

bool flutter::Settings::trace_systrace = false

Definition at line 159 of file settings.h.

◆ trace_to_file

std::string flutter::Settings::trace_to_file

Definition at line 160 of file settings.h.

◆ unhandled_exception_callback

UnhandledExceptionCallback flutter::Settings::unhandled_exception_callback

Definition at line 303 of file settings.h.

◆ use_asset_fonts

bool flutter::Settings::use_asset_fonts = true

Definition at line 215 of file settings.h.

◆ use_test_fonts

bool flutter::Settings::use_test_fonts = false

Definition at line 213 of file settings.h.

◆ verbose_logging

bool flutter::Settings::verbose_logging = false

Definition at line 311 of file settings.h.

◆ vm_service_host

std::string flutter::Settings::vm_service_host

Definition at line 197 of file settings.h.

◆ vm_service_port

uint32_t flutter::Settings::vm_service_port = 0

Definition at line 202 of file settings.h.

◆ vm_snapshot_data

MappingCallback flutter::Settings::vm_snapshot_data

Definition at line 122 of file settings.h.

◆ vm_snapshot_data_path

std::string flutter::Settings::vm_snapshot_data_path

Definition at line 121 of file settings.h.

◆ vm_snapshot_instr

MappingCallback flutter::Settings::vm_snapshot_instr

Definition at line 124 of file settings.h.

◆ vm_snapshot_instr_path

std::string flutter::Settings::vm_snapshot_instr_path

Definition at line 123 of file settings.h.

◆ vmservice_snapshot_library_path

std::vector<std::string> flutter::Settings::vmservice_snapshot_library_path

Definition at line 144 of file settings.h.

◆ warn_on_impeller_opt_out

bool flutter::Settings::warn_on_impeller_opt_out = false

Definition at line 233 of file settings.h.


The documentation for this struct was generated from the following files: