diff options
author | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 20:54:09 +0000 |
---|---|---|
committer | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 20:54:09 +0000 |
commit | d830d13c27437b4677a4a1abfa866d98dc2d2ab9 (patch) | |
tree | 777d1614d3956bb174ac65590b2dd0320f656fe8 /src/core/SkDrawProcs.h | |
parent | 05edd02a7c3d78fe11bbaec83aaa63b2823cce42 (diff) |
Hook in rough distance field support for fonts
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/41213003
git-svn-id: http://skia.googlecode.com/svn/trunk@12229 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkDrawProcs.h')
-rw-r--r-- | src/core/SkDrawProcs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/SkDrawProcs.h b/src/core/SkDrawProcs.h index 8b8c382667..cc2f3ed073 100644 --- a/src/core/SkDrawProcs.h +++ b/src/core/SkDrawProcs.h @@ -57,6 +57,22 @@ struct SkDraw1Glyph { struct SkDrawProcs { SkDraw1Glyph::Proc fD1GProc; +#if SK_DISTANCEFIELD_FONTS + uint32_t fFlags; + + enum Flags { + /** + * Disable baked glyph transforms + */ + kSkipBakedGlyphTransform_Flag = 0x1, + /** + * Scale glyphs to get different point sizes + */ + kUseScaledGlyphs_Flag = 0x2, + }; + + static const int kBaseDFFontSize = 32; +#endif }; /** |