1 # Copyright 2019 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/features.gni")
6 import("//printing/buildflags/buildflags.gni")
9 # Enable experimental Skia Graphite Dawn backend. Currently enabled for Mac
11 skia_use_dawn = is_mac || is_win
13 # Enable experimental Skia Graphite Metal backend. Intended only for debugging
14 # on non-official developer builds.
15 skia_use_metal = is_mac && !is_official_build
17 # Enable gtests using SkiaRenderer on Skia Graphite.
18 enable_skia_graphite_gtests = is_mac
21 # Skia only needs to support GPU rasterization if we use the full Chromium
22 # rendering stack i.e. |use_blink| is true.
23 # TODO(crbug.com/1431198): Split out into separate enable_skia_ganesh flag.
24 skia_support_gpu = use_blink
26 # Skia Ganesh GL backend is always enabled on all platforms - applies only when
27 # GPU rasterization is enabled.
30 skia_support_pdf = use_blink && (enable_printing || enable_printing_unittests)
32 # Skottie is not used on Android. To keep apk size small the skottie library is
33 # excluded from the binary. At the time this comment was written, it adds ~200KB
35 skia_support_skottie = !is_android
37 # Skia needs XMP support for gainmap HDR image decoding in blink.
38 skia_support_xmp = use_blink