aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/device/xps/SkXPSDevice.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-19 16:12:25 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-19 16:12:25 +0000
commit8128d8c119382279918b90ad8d80ccb3aaebb8a0 (patch)
tree5b6e0de49787b72a8438a5e487e5483562147382 /src/device/xps/SkXPSDevice.cpp
parent144cba079cb56229d11a2abf370b43232b5d6cc4 (diff)
Move distance field font code into GrDistanceFieldTextContext.
This avoids the SkDraw path and renders the distance field glyphs directly from GrDistanceFieldTextContext. It also disables LCD, subpixel and autohinting, and removes the supporting code when rendering DF fonts. R=reed@google.com, bsalomon@google.com, robertphillips@google.com Author: jvanverth@google.com Review URL: https://codereview.chromium.org/85653004 git-svn-id: http://skia.googlecode.com/svn/trunk@12770 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/device/xps/SkXPSDevice.cpp')
-rw-r--r--src/device/xps/SkXPSDevice.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
index e7f5a8c760..c407e2c0d7 100644
--- a/src/device/xps/SkXPSDevice.cpp
+++ b/src/device/xps/SkXPSDevice.cpp
@@ -2242,9 +2242,6 @@ static void text_draw_init(const SkPaint& paint,
SkBitSet& glyphsUsed,
SkDraw& myDraw, SkXPSDrawProcs& procs) {
procs.fD1GProc = xps_draw_1_glyph;
-#if SK_DISTANCEFIELD_FONTS
- procs.fFlags = 0;
-#endif
size_t numGlyphGuess;
switch (paint.getTextEncoding()) {
case SkPaint::kUTF8_TextEncoding: