From 6a93ef1c707fb1fdea697a1c35bf68fc4e2986e3 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 24 Apr 2018 16:02:54 -0700 Subject: [PATCH] Call SkGraphics::Init earlier on Fuchsia. (#5079) --- content_handler/application_runner.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content_handler/application_runner.cc b/content_handler/application_runner.cc index 9a36fd1881c..81ab98c7f83 100644 --- a/content_handler/application_runner.cc +++ b/content_handler/application_runner.cc @@ -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();