diff options
author | Ben Wagner <bungeman@google.com> | 2017-03-16 12:38:46 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-16 18:00:40 +0000 |
commit | 22253064ceee1dd9fcd26b7d6d69505cba76bb33 (patch) | |
tree | 02f09686d271c86573b87f6b53b177031528aaf6 /src/ports/SkScalerContext_win_dw.h | |
parent | dc3c336c84dbbf43c68337ebb1b640d5c948e2aa (diff) |
Support pixel antialising in DirectWrite.
DirectWrite2 supports pixel antialiasing and rendering without hinting.
To maintain the infered size based decisions of the previous rendering,
only use the new renderer when it is needed.
BUG=skia:5416
Change-Id: Ia87fdf8fc91dc7ff0f0ce4284c90a5d79045308f
Reviewed-on: https://skia-review.googlesource.com/9805
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/ports/SkScalerContext_win_dw.h')
-rw-r--r-- | src/ports/SkScalerContext_win_dw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ports/SkScalerContext_win_dw.h b/src/ports/SkScalerContext_win_dw.h index e13e01a61b..f186ea52dc 100644 --- a/src/ports/SkScalerContext_win_dw.h +++ b/src/ports/SkScalerContext_win_dw.h @@ -76,7 +76,8 @@ private: DWRITE_RENDERING_MODE fRenderingMode; DWRITE_TEXTURE_TYPE fTextureType; DWRITE_MEASURING_MODE fMeasuringMode; - SkTScopedComPtr<IDWriteFactory2> fFactory2; + DWRITE_TEXT_ANTIALIAS_MODE fAntiAliasMode; + DWRITE_GRID_FIT_MODE fGridFitMode; bool fIsColorFont; }; |