[go: nahoru, domu]

blob: 322d01dfab5b79f7a52beb7017ede0d9abadcce1 [file] [log] [blame]
Avi Drissman09875652022-09-15 20:03:191# Copyright 2019 The Chromium Authors
Sean Gilhuly86026152019-11-06 16:00:162# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Sunny Sachanandanifb74c17f2023-04-10 21:29:175import("//build/config/features.gni")
6import("//printing/buildflags/buildflags.gni")
Sean Gilhuly6f3e0eb42020-07-09 18:46:317
Sunny Sachanandanifb74c17f2023-04-10 21:29:178declare_args() {
Colin Blundell8980e7b42023-12-20 15:08:009 # Enable experimental Skia Graphite Dawn backend. Enabled on platforms where
10 # the team has verified that at least basic rendering to the screen is
11 # working.
Colin Blundell158a7a418c2023-11-23 08:25:0012 skia_use_dawn = is_mac || is_win ||
13 (is_android && target_cpu != "x86" && target_cpu != "x64") ||
Colin Blundell8980e7b42023-12-20 15:08:0014 (is_ios && use_blink) || (is_linux && !is_castos)
Sunny Sachanandani0a26ac5b2023-05-01 22:05:4215
16 # Enable experimental Skia Graphite Metal backend. Intended only for debugging
17 # on non-official developer builds.
Sylvain Defresnec01761922023-11-20 17:49:2518 skia_use_metal = (is_mac || (is_ios && use_blink)) && !is_official_build
Sunny Sachanandanifb74c17f2023-04-10 21:29:1719
20 # Enable gtests using SkiaRenderer on Skia Graphite.
Sylvain Defresnec01761922023-11-20 17:49:2521 enable_skia_graphite_gtests = is_mac || (is_ios && use_blink)
Sean Gilhuly86026152019-11-06 16:00:1622}
Eric Sumde146e22021-10-28 19:14:5123
Sunny Sachanandanifb74c17f2023-04-10 21:29:1724# Skia only needs to support GPU rasterization if we use the full Chromium
25# rendering stack i.e. |use_blink| is true.
26# TODO(crbug.com/1431198): Split out into separate enable_skia_ganesh flag.
27skia_support_gpu = use_blink
28
29# Skia Ganesh GL backend is always enabled on all platforms - applies only when
30# GPU rasterization is enabled.
31skia_use_gl = true
32
Gyuyoung Kim80fd49b2023-11-07 15:44:2233skia_support_pdf = use_blink && (enable_printing || enable_printing_tests)
Sunny Sachanandanifb74c17f2023-04-10 21:29:1734
Eric Sumde146e22021-10-28 19:14:5135# Skottie is not used on Android. To keep apk size small the skottie library is
36# excluded from the binary. At the time this comment was written, it adds ~200KB
37# to the APK.
38skia_support_skottie = !is_android
Christopher Cameron4f2c40f2023-04-14 14:56:3139
40# Skia needs XMP support for gainmap HDR image decoding in blink.
41skia_support_xmp = use_blink