Bug 910754 - skia-npapi's anp_getFontPath() function doesn't work with upstream Skia anymore, and it looks like we don't need it to be implemented anyway r=snorp

This commit is contained in:
George Wright 2013-12-05 23:02:09 -05:00
parent 2e2e65e7e1
commit 2aa5ad0e61

View File

@ -61,6 +61,9 @@ static ANPTypefaceStyle anp_getStyle(const ANPTypeface* tf) {
static int32_t anp_getFontPath(const ANPTypeface* tf, char fileName[],
int32_t length, int32_t* index) {
SkStream* stream = tf->openStream(index);
return 0;
/*
if (stream->getFileName()) {
strcpy(fileName, stream->getFileName());
} else {
@ -68,6 +71,7 @@ static int32_t anp_getFontPath(const ANPTypeface* tf, char fileName[],
}
return strlen(fileName);
*/
}
static const char* gFontDir;