summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skia/ports/SkFontHost_FreeType.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/skia/ports/SkFontHost_FreeType.cpp b/skia/ports/SkFontHost_FreeType.cpp
index 461145f..2a5483d 100644
--- a/skia/ports/SkFontHost_FreeType.cpp
+++ b/skia/ports/SkFontHost_FreeType.cpp
@@ -268,6 +268,7 @@ static void unref_ft_face(FT_Face face) {
SkASSERT("shouldn't get here, face not in list");
}
+#ifdef SKIA_HARFBUZZ
void SkFaceRec::setupShaper(HB_ShaperItem* item) {
if (!fHBFace) {
fHBFace = HB_NewFace(fFace, hb_freetype_table_sfnt_get);
@@ -288,6 +289,7 @@ void SkFaceRec::setupShaper(HB_ShaperItem* item) {
void SkFaceRec::releaseShaper(HB_ShaperItem* item) {
fRefCnt--;
}
+#endif
///////////////////////////////////////////////////////////////////////////