| Index: third_party/freetype/BUILD.gn
|
| diff --git a/third_party/freetype/BUILD.gn b/third_party/freetype/BUILD.gn
|
| index 08fc4f20bf23a54233aa32a5c36c6d89cad1542d..694111c53faae69abe02f1e1f6e98f39ba73cb13 100644
|
| --- a/third_party/freetype/BUILD.gn
|
| +++ b/third_party/freetype/BUILD.gn
|
| @@ -120,6 +120,10 @@ component("freetype") {
|
|
|
| # Selects those three modules in freetype-custom-config/ftmodule.h.
|
| defines += [ "PDFIUM_REQUIRED_MODULES" ]
|
| + } else {
|
| + # Using HarfBuzz assisted autohinting has a performance impact that we do
|
| + # not want to take on Android, see crbug.com/724095.
|
| + defines += [ "WITHOUT_HARFBUZZ" ]
|
| }
|
|
|
| if (is_linux || is_chromecast) {
|
| @@ -174,10 +178,12 @@ component("freetype") {
|
| }
|
|
|
| if (!use_system_harfbuzz) {
|
| - deps += [
|
| - "//third_party/harfbuzz-ng:harfbuzz-ng-ft",
|
| - "//third_party/harfbuzz-ng:harfbuzz-ng-without-freetype",
|
| - ]
|
| + if (!is_android) {
|
| + # See "WITHOUT_HARFBUZZ" above, harfbuzz-ng-ft is only needed if we build
|
| + # FreeType with HarfBuzz support.
|
| + deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng-ft" ]
|
| + }
|
| + deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng-without-freetype" ]
|
| } else {
|
| deps += [ "//third_party/harfbuzz-ng:harfbuzz-ng" ]
|
| }
|
|
|