SkPDF: SkShaper_primitive uses new textblob API
This will enable me to test the new API in unit tests without
depending on HarfBuzz (after https://crrev.com/2322403002 lands).
TBR=
BUG=skia:5434
Review-Url: https://codereview.chromium.org/2332473003
diff --git a/BUILD.gn b/BUILD.gn
index f1439c7..e770c5b 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -786,7 +786,7 @@
}
if (current_cpu != "mipsel") { # Clang 3.8 crashes while compiling hb-icu.cc for mipsel.
- executable("sktexttopdf") {
+ executable("sktexttopdf-hb") {
sources = [
"tools/SkShaper_harfbuzz.cpp",
"tools/using_skia_and_harfbuzz.cpp",
@@ -798,4 +798,14 @@
testonly = true
}
}
+ executable("sktexttopdf") {
+ sources = [
+ "tools/SkShaper_primitive.cpp",
+ "tools/using_skia_and_harfbuzz.cpp",
+ ]
+ deps = [
+ ":skia",
+ ]
+ testonly = true
+ }
}