70 {
71 PostCompletion(
77 const void* mapping = data->GetMapping();
78 byte_buffer = Dart_NewUnmodifiableExternalTypedDataWithFinalizer(
79 Dart_TypedData_kByteData,
80 mapping,
81 size,
82 data.release(),
83 size,
84 MappingFinalizer);
85 } else {
86 Dart_Handle mutable_byte_buffer =
87 tonic::DartByteData::Create(data->GetMapping(), data->GetSize());
88 Dart_Handle ui_lib = Dart_LookupLibrary(
89 tonic::DartConverter<std::string>().ToDart("dart:ui"));
90 FML_DCHECK(!(Dart_IsNull(ui_lib) || Dart_IsError(ui_lib)));
91 byte_buffer = Dart_Invoke(ui_lib,
92 tonic::DartConverter<std::string>().ToDart(
93 "_wrapUnmodifiableByteData"),
94 1, &mutable_byte_buffer);
95 FML_DCHECK(!(Dart_IsNull(byte_buffer) || Dart_IsError(byte_buffer)));
96 }
97
98 return byte_buffer;
99 });
100}
static const size_t kExternalSizeThreshold
struct _Dart_Handle * Dart_Handle
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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 Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size