@@ -32,8 +32,9 @@ class Engine final : public blink::RuntimeDelegate {
|
|||||||
// Used by Engine::Run
|
// Used by Engine::Run
|
||||||
enum class RunStatus {
|
enum class RunStatus {
|
||||||
Success, // Successful call to Run()
|
Success, // Successful call to Run()
|
||||||
FailureAlreadyRunning, // Isolate was already running; may not be considered a failure by callers
|
FailureAlreadyRunning, // Isolate was already running; may not be
|
||||||
Failure, // Isolate could not be started or other unspecified failure
|
// considered a failure by callers
|
||||||
|
Failure, // Isolate could not be started or other unspecified failure
|
||||||
};
|
};
|
||||||
|
|
||||||
class Delegate {
|
class Delegate {
|
||||||
|
|||||||
@@ -162,7 +162,8 @@ void AndroidShellHolder::Launch(RunConfiguration config) {
|
|||||||
config = std::move(config) //
|
config = std::move(config) //
|
||||||
]() mutable {
|
]() mutable {
|
||||||
FML_LOG(INFO) << "Attempting to launch engine configuration...";
|
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.";
|
FML_LOG(ERROR) << "Could not launch engine in configuration.";
|
||||||
} else {
|
} else {
|
||||||
FML_LOG(INFO) << "Isolate for engine configuration successfully "
|
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(
|
fml::MessageLoop::GetCurrent().AddTaskObserver(
|
||||||
reinterpret_cast<intptr_t>(&completion_observer),
|
reinterpret_cast<intptr_t>(&completion_observer),
|
||||||
[&completion_observer]() { completion_observer.DidProcessTask(); });
|
[&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;
|
engine_did_run = true;
|
||||||
|
|
||||||
blink::ViewportMetrics metrics;
|
blink::ViewportMetrics metrics;
|
||||||
|
|||||||
Reference in New Issue
Block a user