diff options
Diffstat (limited to 'chromium/third_party/skia/gn/skia.gni')
-rw-r--r-- | chromium/third_party/skia/gn/skia.gni | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/chromium/third_party/skia/gn/skia.gni b/chromium/third_party/skia/gn/skia.gni index a649bf2bf28..f4b35e83060 100644 --- a/chromium/third_party/skia/gn/skia.gni +++ b/chromium/third_party/skia/gn/skia.gni @@ -23,6 +23,7 @@ declare_args() { skia_enable_gpu = true skia_enable_pdf = true skia_enable_skottie = !(is_win && is_component_build) + skia_enable_skrive = true skia_enable_sksl_interpreter = is_skia_dev_build skia_enable_skvm_jit = is_skia_dev_build && ((target_cpu == "x64" && (is_linux || is_mac)) || @@ -48,7 +49,7 @@ declare_args() { skia_use_ffmpeg = false skia_use_fixed_gamma_text = is_android skia_use_fontconfig = is_linux - skia_use_fonthost_mac = is_mac + skia_use_fonthost_mac = is_mac || is_ios skia_use_freetype = is_android || is_fuchsia || is_linux skia_use_harfbuzz = true skia_use_gl = !is_fuchsia @@ -92,11 +93,13 @@ declare_args() { } declare_args() { - skia_enable_atlas_text = is_skia_dev_build && skia_enable_gpu skia_enable_fontmgr_android = skia_use_expat && skia_use_freetype - skia_enable_fontmgr_custom = - is_linux && skia_use_freetype && !skia_use_fontconfig - skia_enable_fontmgr_custom_empty = is_fuchsia && skia_use_freetype + skia_enable_fontmgr_custom_directory = skia_use_freetype && !is_fuchsia + skia_enable_fontmgr_custom_embedded = skia_use_freetype && !is_fuchsia + skia_enable_fontmgr_custom_empty = skia_use_freetype + skia_enable_fontmgr_fontconfig = skia_use_freetype && skia_use_fontconfig + skia_enable_fontmgr_FontConfigInterface = + skia_use_freetype && skia_use_fontconfig skia_enable_nvpr = !skia_enable_flutter_defines skia_enable_spirv_validation = is_skia_dev_build && is_debug && !skia_use_dawn skia_use_dng_sdk = @@ -108,5 +111,30 @@ declare_args() { skia_use_vma = skia_use_vulkan } +declare_args() { + # skia_fontmgr_factory should define SkFontMgr::Factory() + if (skia_enable_fontmgr_empty) { + skia_fontmgr_factory = "src/ports/SkFontMgr_empty_factory.cpp" + } else if (is_android && skia_enable_fontmgr_android) { + skia_fontmgr_factory = "src/ports/SkFontMgr_android_factory.cpp" + } else if (is_win && skia_enable_fontmgr_win) { + skia_fontmgr_factory = "src/ports/SkFontMgr_win_dw_factory.cpp" + } else if ((is_mac || is_ios) && skia_use_fonthost_mac) { + skia_fontmgr_factory = "src/ports/SkFontMgr_mac_ct_factory.cpp" + } else if (skia_enable_fontmgr_fontconfig) { + skia_fontmgr_factory = "src/ports/SkFontMgr_fontconfig_factory.cpp" + } else if (skia_enable_fontmgr_custom_directory) { + skia_fontmgr_factory = "src/ports/SkFontMgr_custom_directory_factory.cpp" + } else if (skia_enable_fontmgr_custom_embedded) { + skia_fontmgr_factory = "src/ports/SkFontMgr_custom_embedded_factory.cpp" + } else if (skia_enable_fontmgr_custom_empty) { + skia_fontmgr_factory = "src/ports/SkFontMgr_custom_empty_factory.cpp" + } else { + #"src/ports/SkFontMgr_FontConfigInterface_factory.cpp" #WontFix + #"src/ports/SkFontMgr_win_gdi_factory.cpp" # WontFix + skia_fontmgr_factory = "src/ports/SkFontMgr_empty_factory.cpp" + } +} + # Our tools require static linking (they use non-exported symbols), and the GPU backend. skia_enable_tools = skia_enable_tools && !is_component_build && skia_enable_gpu |