From 2f3db61fed9cd2ebc888297a558c84194685572d Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 29 Mar 2017 10:27:56 -0400 Subject: [PATCH] Remove SK_IGNORE_DW_GRAY_FIX. Users have been updated and this define is no longer used. Change-Id: I0430039978171c16ffe19fb3037897bcdf313e42 Reviewed-on: https://skia-review.googlesource.com/10417 Reviewed-by: Ben Wagner Commit-Queue: Ben Wagner --- src/ports/SkScalerContext_win_dw.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ports/SkScalerContext_win_dw.cpp b/src/ports/SkScalerContext_win_dw.cpp index 1fc067ee84..5dc8327554 100644 --- a/src/ports/SkScalerContext_win_dw.cpp +++ b/src/ports/SkScalerContext_win_dw.cpp @@ -341,7 +341,6 @@ SkScalerContext_DW::SkScalerContext_DW(sk_sp typefaceRef, // DirectWrite2 allows for grayscale hinting. fAntiAliasMode = DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE; -#ifndef SK_IGNORE_DW_GRAY_FIX if (typeface->fFactory2 && typeface->fDWriteFontFace2 && SkMask::kA8_Format == fRec.fMaskFormat && !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) @@ -350,7 +349,6 @@ SkScalerContext_DW::SkScalerContext_DW(sk_sp typefaceRef, fTextureType = DWRITE_TEXTURE_ALIASED_1x1; fAntiAliasMode = DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE; } -#endif // DirectWrite2 allows hinting to be disabled. fGridFitMode = DWRITE_GRID_FIT_MODE_ENABLED; -- 2.34.1