Index: skia/BUILD.gn |
diff --git a/skia/BUILD.gn b/skia/BUILD.gn |
index 75c764c0703caeb8b05326a0755d3c152647cfcd..19441835d832501e5d90845365f15bf1801e36f7 100644 |
--- a/skia/BUILD.gn |
+++ b/skia/BUILD.gn |
@@ -9,7 +9,7 @@ if (cpu_arch == "arm") { |
} |
skia_support_gpu = !is_ios |
-skia_support_pdf = !is_ios && printing_mode != 0 |
+skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) |
# The list of Skia defines that are to be set for blink. |
gypi_blink_skia_defines = exec_script( |
@@ -432,7 +432,7 @@ component("skia") { |
if (is_win) { |
sources -= [ "ext/SkThread_chrome.cc" ] |
} |
- if (is_android && printing_mode == 0) { |
+ if (is_android && (!enable_basic_printing && !enable_print_preview)) { |
sources -= [ |
"ext/skia_utils_base.cc", |
"ext/vector_platform_device_skia.cc" |