forked from firka/flutter
Roll Dart to 491390eeaa7974f44a8931d10a899c39c0df8dda (flutter/engine#3984)
- Roll Dart to 491390eeaa7974f44a8931d10a899c39c0df8dda - Register the EmbedderInformationCallback
This commit is contained in:
committed by
GitHub
parent
8f73cd6c6c
commit
a78aa4cde4
@@ -437,6 +437,12 @@ void PushBackAll(std::vector<const char*>* args,
|
||||
}
|
||||
}
|
||||
|
||||
static void EmbedderInformationCallback(Dart_EmbedderInformation* info) {
|
||||
info->version = DART_EMBEDDER_INFORMATION_CURRENT_VERSION;
|
||||
dart::bin::GetIOEmbedderInformation(info);
|
||||
info->name = "Flutter";
|
||||
}
|
||||
|
||||
void InitDartVM(const uint8_t* vm_snapshot_data,
|
||||
const uint8_t* vm_snapshot_instructions,
|
||||
const uint8_t* default_isolate_snapshot_data,
|
||||
@@ -574,6 +580,8 @@ void InitDartVM(const uint8_t* vm_snapshot_data,
|
||||
// Allow streaming of stdout and stderr by the Dart vm.
|
||||
Dart_SetServiceStreamCallbacks(&ServiceStreamListenCallback,
|
||||
&ServiceStreamCancelCallback);
|
||||
|
||||
Dart_SetEmbedderInformationCallback(&EmbedderInformationCallback);
|
||||
}
|
||||
|
||||
} // namespace blink
|
||||
|
||||
Reference in New Issue
Block a user