diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-27 20:01:49 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-27 20:01:49 +0000 |
commit | 070da5edcb1c6e9b9507f06a5e2c270e1c1fd796 (patch) | |
tree | fcf071ef729c44331f05c97a8266ae4375b823bc /src/ports | |
parent | 798c8c4fe61f2172ae52cb626843a64069e18882 (diff) |
add dummpy SkFontMgr::Factory() impl to font backends, so we can start testing it
Review URL: https://codereview.chromium.org/13119021
git-svn-id: http://skia.googlecode.com/svn/trunk@8415 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports')
-rw-r--r-- | src/ports/SkFontHost_android.cpp | 9 | ||||
-rw-r--r-- | src/ports/SkFontHost_fontconfig.cpp | 9 | ||||
-rw-r--r-- | src/ports/SkFontHost_linux.cpp | 9 | ||||
-rw-r--r-- | src/ports/SkFontHost_none.cpp | 9 | ||||
-rwxr-xr-x | src/ports/SkFontHost_win.cpp | 9 | ||||
-rw-r--r-- | src/ports/SkFontHost_win_dw.cpp | 9 |
6 files changed, 54 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_android.cpp b/src/ports/SkFontHost_android.cpp index d1bd9929f9..37495e7a10 100644 --- a/src/ports/SkFontHost_android.cpp +++ b/src/ports/SkFontHost_android.cpp @@ -1064,3 +1064,12 @@ void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackconf, SkDEBUGF(("Use Test Config File Main %s, Fallback %s, Font Dir %s", gTestMainConfigFile, gTestFallbackConfigFile, gTestFontFilePrefix)); } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} diff --git a/src/ports/SkFontHost_fontconfig.cpp b/src/ports/SkFontHost_fontconfig.cpp index f66be28fdb..2f2b31429b 100644 --- a/src/ports/SkFontHost_fontconfig.cpp +++ b/src/ports/SkFontHost_fontconfig.cpp @@ -222,3 +222,12 @@ void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc, desc->setFamilyName(this->getFamilyName()); *isLocalStream = SkToBool(this->getLocalStream()); } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} diff --git a/src/ports/SkFontHost_linux.cpp b/src/ports/SkFontHost_linux.cpp index 0ddcdb767a..8825919a98 100644 --- a/src/ports/SkFontHost_linux.cpp +++ b/src/ports/SkFontHost_linux.cpp @@ -517,3 +517,12 @@ SkTypeface* SkFontHost::CreateTypefaceFromFile(const char path[]) { SkAutoTUnref<SkStream> stream(SkStream::NewFromFile(path)); return stream.get() ? CreateTypefaceFromStream(stream) : NULL; } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} diff --git a/src/ports/SkFontHost_none.cpp b/src/ports/SkFontHost_none.cpp index 5e3eb085ca..c5267096b4 100644 --- a/src/ports/SkFontHost_none.cpp +++ b/src/ports/SkFontHost_none.cpp @@ -26,3 +26,12 @@ SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) { SkDEBUGFAIL("SkFontHost::CreateTypefaceFromFile unimplemented"); return NULL; } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp index 0261b2b849..1253f84ebb 100755 --- a/src/ports/SkFontHost_win.cpp +++ b/src/ports/SkFontHost_win.cpp @@ -1674,3 +1674,12 @@ void LogFontTypeface::onFilterRec(SkScalerContextRec* rec) const { rec->fFlags &= ~SkScalerContext::kGenA8FromLCD_Flag; } } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp index 8debc31f87..489bad727a 100644 --- a/src/ports/SkFontHost_win_dw.cpp +++ b/src/ports/SkFontHost_win_dw.cpp @@ -1518,3 +1518,12 @@ SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics( return info; } + +/////////////////////////////////////////////////////////////////////////////// + +#include "SkFontMgr.h" + +SkFontMgr* SkFontMgr::Factory() { + // todo + return NULL; +} |