diff options
author | bungeman <bungeman@google.com> | 2016-05-17 12:24:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-17 12:24:24 -0700 |
commit | b3ed65e53703221a7649571da17f0b54f5770073 (patch) | |
tree | d41cb1dc0606be0145ca14395d9982d85e05f01c /src/ports | |
parent | 56a11e4d6f3d436a3c2497c9c9e71a117d78a93f (diff) |
Fix code guarded by SK_FONT_HOST_USE_SYSTEM_SETTINGS.
BUG=skia:5313
Review-Url: https://codereview.chromium.org/1988913003
Diffstat (limited to 'src/ports')
-rw-r--r-- | src/ports/SkTypeface_win_dw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp index 0f22e471cf..a12438c88f 100644 --- a/src/ports/SkTypeface_win_dw.cpp +++ b/src/ports/SkTypeface_win_dw.cpp @@ -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))) { |