move xfermode modes from porterduff into xfermode itself
git-svn-id: http://skia.googlecode.com/svn/trunk@232 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 8c11604..7aa14b2 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -75,7 +75,9 @@
virtual ~SkScalerContext_FreeType();
bool success() const {
- return fFaceRec != NULL && fFTSize != NULL;
+ return fFaceRec != NULL &&
+ fFTSize != NULL &&
+ fFace != NULL;
}
protected:
@@ -761,10 +763,6 @@
}
FT_Face face = fFace;
- if (!face) {
- goto ERROR;
- }
-
int upem = face->units_per_EM;
if (upem <= 0) {
goto ERROR;