#include <platform_configuration.h>
|
static std::string | DefaultRouteName () |
|
static void | ScheduleFrame () |
|
static void | EndWarmUpFrame () |
|
static void | Render (int64_t view_id, Scene *scene, double width, double height) |
|
static void | UpdateSemantics (SemanticsUpdate *update) |
|
static void | SetNeedsReportTimings (bool value) |
|
static Dart_Handle | GetPersistentIsolateData () |
|
static Dart_Handle | ComputePlatformResolvedLocale (Dart_Handle supportedLocalesHandle) |
|
static void | SetIsolateDebugName (const std::string &name) |
|
static Dart_Handle | SendPlatformMessage (const std::string &name, Dart_Handle callback, Dart_Handle data_handle) |
|
static Dart_Handle | SendPortPlatformMessage (const std::string &name, Dart_Handle identifier, Dart_Handle send_port, Dart_Handle data_handle) |
|
static void | RespondToPlatformMessage (int response_id, const tonic::DartByteData &data) |
|
static void | SendChannelUpdate (const std::string &name, bool listening) |
|
static int | RequestDartPerformanceMode (int mode) |
| Requests the Dart VM to adjusts the GC heuristics based on the requested performance_mode . Returns the old performance mode. More...
|
|
static Dart_PerformanceMode | GetDartPerformanceMode () |
| Returns the current performance mode of the Dart VM. Defaults to Dart_PerformanceMode_Default if no prior requests to change the performance mode have been made. More...
|
|
static int64_t | GetRootIsolateToken () |
|
static void | RegisterBackgroundIsolate (int64_t root_isolate_token) |
|
static double | GetScaledFontSize (double unscaled_font_size, int configuration_id) |
|
Definition at line 571 of file platform_configuration.h.
◆ ComputePlatformResolvedLocale()
Dart_Handle flutter::PlatformConfigurationNativeApi::ComputePlatformResolvedLocale |
( |
Dart_Handle |
supportedLocalesHandle | ) |
|
|
static |
Definition at line 606 of file platform_configuration.cc.
607 {
609 std::vector<std::string> supportedLocales =
611 supportedLocalesHandle);
612
613 std::vector<std::string> results =
618
620}
PlatformConfiguration * platform_configuration() const
static UIDartState * Current()
static void ThrowIfUIOperationsProhibited()
Dart_Handle ToDart(const T &object)
◆ DefaultRouteName()
std::string flutter::PlatformConfigurationNativeApi::DefaultRouteName |
( |
| ) |
|
|
static |
◆ EndWarmUpFrame()
void flutter::PlatformConfigurationNativeApi::EndWarmUpFrame |
( |
| ) |
|
|
static |
◆ GetDartPerformanceMode()
Returns the current performance mode of the Dart VM. Defaults to Dart_PerformanceMode_Default
if no prior requests to change the performance mode have been made.
Definition at line 564 of file platform_configuration.cc.
564 {
565 return current_performance_mode_;
566}
◆ GetPersistentIsolateData()
Dart_Handle flutter::PlatformConfigurationNativeApi::GetPersistentIsolateData |
( |
| ) |
|
|
static |
Definition at line 574 of file platform_configuration.cc.
574 {
576
581
582 if (!persistent_isolate_data) {
584 }
585
587 persistent_isolate_data->GetSize());
588}
static Dart_Handle Create(const void *data, size_t length)
DART_EXPORT Dart_Handle Dart_Null(void)
◆ GetRootIsolateToken()
int64_t flutter::PlatformConfigurationNativeApi::GetRootIsolateToken |
( |
| ) |
|
|
static |
Definition at line 630 of file platform_configuration.cc.
630 {
633 return dart_state->GetRootIsolateToken();
634}
#define FML_DCHECK(condition)
◆ GetScaledFontSize()
double flutter::PlatformConfigurationNativeApi::GetScaledFontSize |
( |
double |
unscaled_font_size, |
|
|
int |
configuration_id |
|
) |
| |
|
static |
◆ RegisterBackgroundIsolate()
void flutter::PlatformConfigurationNativeApi::RegisterBackgroundIsolate |
( |
int64_t |
root_isolate_token | ) |
|
|
static |
Definition at line 636 of file platform_configuration.cc.
637 {
639 FML_DCHECK(dart_state && !dart_state->IsRootIsolate());
640 auto platform_message_handler =
641 (*static_cast<std::shared_ptr<PlatformMessageHandlerStorage>*>(
644 auto weak_platform_message_handler =
645 platform_message_handler->GetPlatformMessageHandler(root_isolate_token);
646 dart_state->SetPlatformMessageHandler(weak_platform_message_handler);
647}
DART_EXPORT void * Dart_CurrentIsolateGroupData(void)
◆ Render()
void flutter::PlatformConfigurationNativeApi::Render |
( |
int64_t |
view_id, |
|
|
Scene * |
scene, |
|
|
double |
width, |
|
|
double |
height |
|
) |
| |
|
static |
◆ RequestDartPerformanceMode()
int flutter::PlatformConfigurationNativeApi::RequestDartPerformanceMode |
( |
int |
mode | ) |
|
|
static |
Requests the Dart VM to adjusts the GC heuristics based on the requested performance_mode
. Returns the old performance mode.
Requesting a performance mode doesn't guarantee any performance characteristics. This is best effort, and should be used after careful consideration of the various GC trade-offs.
- Parameters
-
[in] | performance_mode | The requested performance mode. Please refer to documentation of Dart_PerformanceMode for more details about what each performance mode does. |
Definition at line 568 of file platform_configuration.cc.
568 {
572}
DART_EXPORT Dart_PerformanceMode Dart_SetPerformanceMode(Dart_PerformanceMode mode)
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 mode
◆ RespondToPlatformMessage()
void flutter::PlatformConfigurationNativeApi::RespondToPlatformMessage |
( |
int |
response_id, |
|
|
const tonic::DartByteData & |
data |
|
) |
| |
|
static |
Definition at line 537 of file platform_configuration.cc.
539 {
544 } else {
545
546 const uint8_t*
buffer =
static_cast<const uint8_t*
>(
data.data());
550 response_id,
552 }
553}
DART_EXPORT bool Dart_IsNull(Dart_Handle object)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ ScheduleFrame()
void flutter::PlatformConfigurationNativeApi::ScheduleFrame |
( |
| ) |
|
|
static |
◆ SendChannelUpdate()
void flutter::PlatformConfigurationNativeApi::SendChannelUpdate |
( |
const std::string & |
name, |
|
|
bool |
listening |
|
) |
| |
|
static |
◆ SendPlatformMessage()
Definition at line 494 of file platform_configuration.cc.
497 {
499
500 if (!dart_state->platform_configuration()) {
502 "SendPlatformMessage only works on the root isolate, see "
503 "SendPortPlatformMessage.");
504 }
505
508 response = fml::MakeRefCounted<PlatformMessageResponseDart>(
510 dart_state->GetTaskRunners().GetUITaskRunner(),
name);
511 }
512
513 return HandlePlatformMessage(dart_state,
name, data_handle, response);
514}
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ SendPortPlatformMessage()
Definition at line 516 of file platform_configuration.cc.
520 {
521
523
527 }
528
530 fml::MakeRefCounted<PlatformMessageResponseDartPort>(
533
534 return HandlePlatformMessage(dart_state,
name, data_handle, response);
535}
static SkString identifier(const FontFamilyDesc &family, const FontDesc &font)
◆ SetIsolateDebugName()
void flutter::PlatformConfigurationNativeApi::SetIsolateDebugName |
( |
const std::string & |
name | ) |
|
|
static |
◆ SetNeedsReportTimings()
void flutter::PlatformConfigurationNativeApi::SetNeedsReportTimings |
( |
bool |
value | ) |
|
|
static |
◆ UpdateSemantics()
void flutter::PlatformConfigurationNativeApi::UpdateSemantics |
( |
SemanticsUpdate * |
update | ) |
|
|
static |
The documentation for this class was generated from the following files: