From 46763f7498316092531cf75815b36094b5e9553d Mon Sep 17 00:00:00 2001 From: xiongwei Date: Thu, 12 Jan 2023 17:33:03 +0800 Subject: [PATCH] Temporary comments Signed-off-by: xiongwei --- .../src/ports/SkFontMgr_custom_directory_factory.cpp | 12 ++++++------ skia/src/ports/SkFontMgr_win_factory.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/skia/src/ports/SkFontMgr_custom_directory_factory.cpp b/skia/src/ports/SkFontMgr_custom_directory_factory.cpp index 0b173c3a..ecbecc85 100644 --- a/skia/src/ports/SkFontMgr_custom_directory_factory.cpp +++ b/skia/src/ports/SkFontMgr_custom_directory_factory.cpp @@ -21,12 +21,12 @@ SK_API sk_sp SkFontMgr_New_OHOS(const char *path); sk_sp SkFontMgr::Factory() { - if (SkFontMgr::runtimeOS == "OHOS") { - return SkFontMgr_New_OHOS(nullptr); - } - if (SkFontMgr::runtimeOS == "OHOS_Container") { - return SkFontMgr_New_Preview(); - } + // if (SkFontMgr::runtimeOS == "OHOS") { + // return SkFontMgr_New_OHOS(nullptr); + // } + // if (SkFontMgr::runtimeOS == "OHOS_Container") { + // return SkFontMgr_New_Preview(); + // } return SkFontMgr_New_Custom_Directory(SK_FONT_FILE_PREFIX); } #else diff --git a/skia/src/ports/SkFontMgr_win_factory.cpp b/skia/src/ports/SkFontMgr_win_factory.cpp index b90967f6..158de838 100644 --- a/skia/src/ports/SkFontMgr_win_factory.cpp +++ b/skia/src/ports/SkFontMgr_win_factory.cpp @@ -17,11 +17,11 @@ SK_API sk_sp SkFontMgr_New_OHOS(const char *path); sk_sp SkFontMgr::Factory() { - if (SkFontMgr::runtimeOS == "OHOS") { - return SkFontMgr_New_OHOS(nullptr); - } - if (SkFontMgr::runtimeOS == "OHOS_Container") { - return SkFontMgr_New_Preview(); - } + // if (SkFontMgr::runtimeOS == "OHOS") { + // return SkFontMgr_New_OHOS(nullptr); + // } + // if (SkFontMgr::runtimeOS == "OHOS_Container") { + // return SkFontMgr_New_Preview(); + // } return SkFontMgr_New_DirectWrite(); } \ No newline at end of file -- Gitee