Fix code guarded by SK_FONT_HOST_USE_SYSTEM_SETTINGS.

BUG=skia:5313

Review-Url: https://codereview.chromium.org/1988913003
This commit is contained in:
bungeman 2016-05-17 12:24:24 -07:00 committed by Commit bot
parent 56a11e4d6f
commit b3ed65e537

View File

@ -266,8 +266,8 @@ void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const {
h = SkPaint::kSlight_Hinting;
rec->setHinting(h);
#if SK_FONT_HOST_USE_SYSTEM_SETTINGS
IDWriteFactory* factory = get_dwrite_factory();
#if defined(SK_FONT_HOST_USE_SYSTEM_SETTINGS)
IDWriteFactory* factory = sk_get_dwrite_factory();
if (factory != nullptr) {
SkTScopedComPtr<IDWriteRenderingParams> defaultRenderingParams;
if (SUCCEEDED(factory->CreateRenderingParams(&defaultRenderingParams))) {