mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
parent
89eeaf461e
commit
1df2685196
@ -32,8 +32,9 @@ class Engine final : public blink::RuntimeDelegate {
|
||||
// Used by Engine::Run
|
||||
enum class RunStatus {
|
||||
Success, // Successful call to Run()
|
||||
FailureAlreadyRunning, // Isolate was already running; may not be considered a failure by callers
|
||||
Failure, // Isolate could not be started or other unspecified failure
|
||||
FailureAlreadyRunning, // Isolate was already running; may not be
|
||||
// considered a failure by callers
|
||||
Failure, // Isolate could not be started or other unspecified failure
|
||||
};
|
||||
|
||||
class Delegate {
|
||||
|
||||
@ -162,7 +162,8 @@ void AndroidShellHolder::Launch(RunConfiguration config) {
|
||||
config = std::move(config) //
|
||||
]() mutable {
|
||||
FML_LOG(INFO) << "Attempting to launch engine configuration...";
|
||||
if (!engine || engine->Run(std::move(config)) == shell::Engine::RunStatus::Failure) {
|
||||
if (!engine || engine->Run(std::move(config)) ==
|
||||
shell::Engine::RunStatus::Failure) {
|
||||
FML_LOG(ERROR) << "Could not launch engine in configuration.";
|
||||
} else {
|
||||
FML_LOG(INFO) << "Isolate for engine configuration successfully "
|
||||
|
||||
@ -171,7 +171,8 @@ int RunTester(const blink::Settings& settings, bool run_forever) {
|
||||
fml::MessageLoop::GetCurrent().AddTaskObserver(
|
||||
reinterpret_cast<intptr_t>(&completion_observer),
|
||||
[&completion_observer]() { completion_observer.DidProcessTask(); });
|
||||
if (engine->Run(std::move(config)) != shell::Engine::RunStatus::Failure) {
|
||||
if (engine->Run(std::move(config)) !=
|
||||
shell::Engine::RunStatus::Failure) {
|
||||
engine_did_run = true;
|
||||
|
||||
blink::ViewportMetrics metrics;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user