mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Call SkGraphics::Init earlier on Fuchsia. (#5079)
This commit is contained in:
parent
f1234eb077
commit
6a93ef1c70
@ -8,6 +8,7 @@
|
||||
|
||||
#include "flutter/lib/ui/text/font_collection.h"
|
||||
#include "fuchsia_font_manager.h"
|
||||
#include "third_party/skia/include/core/SkGraphics.h"
|
||||
#include "lib/icu_data/cpp/icu_data.h"
|
||||
|
||||
namespace flutter {
|
||||
@ -15,6 +16,9 @@ namespace flutter {
|
||||
ApplicationRunner::ApplicationRunner(fxl::Closure on_termination_callback)
|
||||
: on_termination_callback_(std::move(on_termination_callback)),
|
||||
host_context_(component::ApplicationContext::CreateFromStartupInfo()) {
|
||||
|
||||
SkGraphics::Init();
|
||||
|
||||
SetupICU();
|
||||
|
||||
SetupGlobalFonts();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user