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
This commit is contained in:
reed@google.com 2013-03-27 20:01:49 +00:00
parent 798c8c4fe6
commit 070da5edcb
6 changed files with 54 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -26,3 +26,12 @@ SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) {
SkDEBUGFAIL("SkFontHost::CreateTypefaceFromFile unimplemented");
return NULL;
}
///////////////////////////////////////////////////////////////////////////////
#include "SkFontMgr.h"
SkFontMgr* SkFontMgr::Factory() {
// todo
return NULL;
}

View File

@ -1674,3 +1674,12 @@ void LogFontTypeface::onFilterRec(SkScalerContextRec* rec) const {
rec->fFlags &= ~SkScalerContext::kGenA8FromLCD_Flag;
}
}
///////////////////////////////////////////////////////////////////////////////
#include "SkFontMgr.h"
SkFontMgr* SkFontMgr::Factory() {
// todo
return NULL;
}

View File

@ -1518,3 +1518,12 @@ SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics(
return info;
}
///////////////////////////////////////////////////////////////////////////////
#include "SkFontMgr.h"
SkFontMgr* SkFontMgr::Factory() {
// todo
return NULL;
}