@@ -910,29 +910,6 @@ class Engine final : public RuntimeDelegate, PointerDataDispatcher::Delegate {
910910 }
911911
912912 private:
913- Engine::Delegate& delegate_;
914- const Settings settings_;
915- std::unique_ptr<Animator> animator_;
916- std::unique_ptr<RuntimeController> runtime_controller_;
917-
918- // The pointer_data_dispatcher_ depends on animator_ and runtime_controller_.
919- // So it should be defined after them to ensure that pointer_data_dispatcher_
920- // is destructed first.
921- std::unique_ptr<PointerDataDispatcher> pointer_data_dispatcher_;
922-
923- std::string last_entry_point_;
924- std::string last_entry_point_library_;
925- std::string initial_route_;
926- ViewportMetrics viewport_metrics_;
927- std::shared_ptr<AssetManager> asset_manager_;
928- bool activity_running_;
929- bool have_surface_;
930- std::shared_ptr<FontCollection> font_collection_;
931- ImageDecoder image_decoder_;
932- ImageGeneratorRegistry image_generator_registry_;
933- TaskRunners task_runners_;
934- fml::WeakPtrFactory<Engine> weak_factory_;
935-
936913 // |RuntimeDelegate|
937914 std::string DefaultRouteName () override ;
938915
@@ -981,6 +958,28 @@ class Engine final : public RuntimeDelegate, PointerDataDispatcher::Delegate {
981958
982959 friend class testing ::ShellTest;
983960
961+ Engine::Delegate& delegate_;
962+ const Settings settings_;
963+ std::unique_ptr<Animator> animator_;
964+ std::unique_ptr<RuntimeController> runtime_controller_;
965+
966+ // The pointer_data_dispatcher_ depends on animator_ and runtime_controller_.
967+ // So it should be defined after them to ensure that pointer_data_dispatcher_
968+ // is destructed first.
969+ std::unique_ptr<PointerDataDispatcher> pointer_data_dispatcher_;
970+
971+ std::string last_entry_point_;
972+ std::string last_entry_point_library_;
973+ std::string initial_route_;
974+ ViewportMetrics viewport_metrics_;
975+ std::shared_ptr<AssetManager> asset_manager_;
976+ bool activity_running_;
977+ bool have_surface_;
978+ std::shared_ptr<FontCollection> font_collection_;
979+ ImageDecoder image_decoder_;
980+ ImageGeneratorRegistry image_generator_registry_;
981+ TaskRunners task_runners_;
982+ fml::WeakPtrFactory<Engine> weak_factory_; // Must be the last member.
984983 FML_DISALLOW_COPY_AND_ASSIGN (Engine);
985984};
986985
0 commit comments