5#ifndef FLUTTER_COMMON_SETTINGS_H_
6#define FLUTTER_COMMON_SETTINGS_H_
17#include "flutter/fml/build_config.h"
18#include "flutter/fml/closure.h"
19#include "flutter/fml/mapping.h"
20#include "flutter/fml/time/time_point.h"
21#include "flutter/fml/unique_fd.h"
53 return data_[phase] =
value;
63 size_t layer_cache_bytes,
64 size_t picture_cache_count,
65 size_t picture_cache_bytes) {
66 layer_cache_count_ = layer_cache_count;
67 layer_cache_bytes_ = layer_cache_bytes;
68 picture_cache_count_ = picture_cache_count;
69 picture_cache_bytes_ = picture_cache_bytes;
74 uint64_t frame_number_;
75 size_t layer_cache_count_;
76 size_t layer_cache_bytes_;
77 size_t picture_cache_count_;
78 size_t picture_cache_bytes_;
86 const std::string& )>;
89 const std::string& )>;
94using Mappings = std::vector<std::unique_ptr<const fml::Mapping>>;
226#if FML_OS_IOS || FML_OS_IOS_SIMULATOR
Represents an instance of a live isolate. An isolate is a separate Dart execution context....
static constexpr Phase kPhases[kCount]
void SetFrameNumber(uint64_t frame_number)
uint64_t GetPictureCacheCount() const
uint64_t GetLayerCacheBytes() const
uint64_t GetFrameNumber() const
uint64_t GetPictureCacheBytes() const
uint64_t GetLayerCacheCount() const
fml::TimePoint Set(Phase phase, fml::TimePoint value)
static constexpr int kStatisticsCount
void SetRasterCacheStatistics(size_t layer_cache_count, size_t layer_cache_bytes, size_t picture_cache_count, size_t picture_cache_bytes)
fml::TimePoint Get(Phase phase) const
Dart_NativeFunction function
std::function< void(intptr_t)> TaskObserverRemove
std::function< void(intptr_t, fml::closure)> TaskObserverAdd
std::function< Mappings(void)> MappingsCallback
std::vector< std::unique_ptr< const fml::Mapping > > Mappings
std::function< void(const FrameTiming &)> FrameRasterizedCallback
std::function< std::unique_ptr< fml::Mapping >(void)> MappingCallback
std::function< bool(const std::string &, const std::string &)> UnhandledExceptionCallback
std::function< void(const std::string &, const std::string &)> LogMessageCallback
std::function< void()> closure
std::string advisory_script_entrypoint
bool prefetched_default_font_manager
std::string application_kernel_asset
fml::UniqueFD::element_type assets_dir
std::vector< std::string > vmservice_snapshot_library_path
bool enable_software_rendering
bool icu_initialization_required
std::string advisory_script_uri
bool endless_trace_buffer
AndroidRenderingAPI android_rendering_api
std::vector< std::string > application_library_path
LogMessageCallback log_message_callback
std::string vm_snapshot_instr_path
MappingCallback isolate_snapshot_instr
bool disable_service_auth_codes
std::string temp_directory_path
std::function< void(const DartIsolate &)> root_isolate_create_callback
bool enable_opengl_gpu_tracing
bool enable_dart_profiling
TaskObserverRemove task_observer_remove
MappingCallback isolate_snapshot_data
MappingsCallback application_kernels
bool skia_deterministic_rendering_on_cpu
MappingCallback vm_snapshot_data
bool purge_persistent_cache
bool enable_vulkan_gpu_tracing
std::vector< std::string > trace_allowlist
std::string vm_service_host
bool enable_vulkan_validation
MappingCallback icu_mapper
bool dump_skp_on_shader_compilation
TaskObserverAdd task_observer_add
uint32_t font_initialization_data
std::string application_kernel_list_asset
fml::closure service_isolate_create_callback
std::shared_ptr< const fml::Mapping > persistent_isolate_data
std::string isolate_snapshot_data_path
std::vector< std::string > dart_flags
bool enable_timeline_event_handler
bool may_insecurely_connect_to_all_domains
fml::closure isolate_shutdown_callback
Settings(const Settings &other)
std::string executable_name
bool enable_service_port_fallback
static constexpr bool kSurfaceDataAccessible
bool enable_vm_service_publication
fml::closure isolate_create_callback
std::optional< std::vector< std::string > > trace_skia_allowlist
std::optional< std::string > requested_rendering_backend
std::string icu_data_path
FrameRasterizedCallback frame_rasterized_callback
bool enable_platform_isolates
std::string trace_to_file
bool disable_dart_asserts
UnhandledExceptionCallback unhandled_exception_callback
bool warn_on_impeller_opt_out
MappingCallback vm_snapshot_instr
std::string vm_snapshot_data_path
std::function< void(int64_t)> idle_notification_callback
fml::closure root_isolate_shutdown_callback
MappingCallback dart_library_sources_kernel
int64_t old_gen_heap_size
std::string isolate_snapshot_instr_path
size_t resource_cache_max_bytes_threshold
std::string domain_network_policy
static int InvalidValue()