stub support for SK_FONTHOST_USES_FONTMGR
BUG=
Review URL: https://codereview.chromium.org/21563002
git-svn-id: http://skia.googlecode.com/svn/trunk@10485 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkFontHost_linux.cpp b/src/ports/SkFontHost_linux.cpp
index 8825919..7143898 100644
--- a/src/ports/SkFontHost_linux.cpp
+++ b/src/ports/SkFontHost_linux.cpp
@@ -469,6 +469,8 @@
///////////////////////////////////////////////////////////////////////////////
+#ifndef SK_FONTHOST_USES_FONTMGR
+
SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
const char familyName[],
SkTypeface::Style style) {
@@ -496,8 +498,6 @@
return tf;
}
-///////////////////////////////////////////////////////////////////////////////
-
SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) {
if (NULL == stream || stream->getLength() <= 0) {
SkDELETE(stream);
@@ -518,6 +518,8 @@
return stream.get() ? CreateTypefaceFromStream(stream) : NULL;
}
+#endif
+
///////////////////////////////////////////////////////////////////////////////
#include "SkFontMgr.h"