aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 1a72b2236d..f1c4a4ca74 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -60,6 +60,10 @@ extern void SkPDFImageDumpStats();
#include <unistd.h>
#endif
+#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) && defined(SK_HAS_HEIF_LIBRARY)
+#include <binder/IPCThreadState.h>
+#endif
+
extern bool gSkForceRasterPipelineBlitter;
DECLARE_bool(undefok);
@@ -1313,6 +1317,9 @@ static sk_sp<SkTypeface> create_from_name(const char familyName[], SkFontStyle s
extern sk_sp<SkTypeface> (*gCreateTypefaceDelegate)(const char [], SkFontStyle );
int main(int argc, char** argv) {
+#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) && defined(SK_HAS_HEIF_LIBRARY)
+ android::ProcessState::self()->startThreadPool();
+#endif
SkCommandLineFlags::Parse(argc, argv);
if (!FLAGS_nativeFonts) {