Index: src/ports/SkFontHost_FreeType.cpp |
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp |
index 167c38b6670e81878bfcef6e2b67855306b7716e..ce762d82214170661d8e7e4bd7195434b90d5c6f 100644 |
--- a/src/ports/SkFontHost_FreeType.cpp |
+++ b/src/ports/SkFontHost_FreeType.cpp |
@@ -697,11 +697,11 @@ void SkTypeface_FreeType::onFilterRec(SkScalerContextRec* rec) const { |
rec->fTextSize = SkIntToScalar(1 << 14); |
} |
- { |
+ if (isLCD(*rec)) { |
// TODO: re-work so that FreeType is set-up and selected by the SkFontMgr. |
SkAutoMutexAcquire ama(gFTMutex); |
ref_ft_library(); |
- if (!gFTLibrary->isLCDSupported() && isLCD(*rec)) { |
+ if (!gFTLibrary->isLCDSupported()) { |
// If the runtime Freetype library doesn't support LCD, disable it here. |
rec->fMaskFormat = SkMask::kA8_Format; |
} |