Commit 1ae09508 authored by Wez's avatar Wez Committed by Commit Bot

Disable SkTypeface FromFontConfigInterfaceIdAndTtcIndex on Fuchsia.

Previously this method of creating an SkTypeface was not-implemented
under Fuchsia, but that was changed during the refactoring in
https://chromium-review.googlesource.com/c/chromium/src/+/1238540

We restore OS_FUCHSIA as a platform on which this method is not-
implemented, to avoid the SkFontConfigInterface::RefGlobal() reference
breaking our Debug builds.

CQ_INCLUDE_TRYBOTS=luci.chromium.try:fuchsia-fyi-x64-dbg

Bug: 816445
Change-Id: Ib14023478e65a8b9c59886a579d60a5be7e00aff
Reviewed-on: https://chromium-review.googlesource.com/1243571Reviewed-by: default avatarDominik Röttsches <drott@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594086}
parent 6b17c652
......@@ -15,7 +15,8 @@ namespace blink {
sk_sp<SkTypeface> SkTypeface_Factory::FromFontConfigInterfaceIdAndTtcIndex(
int config_id,
int ttc_index) {
#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_WIN)
#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && !defined(OS_WIN) && \
!defined(OS_FUCHSIA)
sk_sp<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
SkFontConfigInterface::FontIdentity font_identity;
font_identity.fID = config_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment