diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-03 19:43:20 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-01-03 19:43:20 +0000 |
commit | abf00aaaa0262905ad19b0a0ed654c87276490fc (patch) | |
tree | 52abac8d896bac7f5dc40a474ecfa45493c92acd /include/core | |
parent | 39dab77070ca287746a7c2188c60de38ae51b3e8 (diff) |
expose isSubpixel() on the cache, so SkDraw can know if it should expect
subpixel text (it may be that the paint requested it, but the scaler ignored it)
git-svn-id: http://skia.googlecode.com/svn/trunk@2946 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkScalerContext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index 22c22270ee..f59d489910 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -243,6 +243,10 @@ public: return (SkMask::Format)fRec.fMaskFormat; } + bool isSubpixel() const { + return SkToBool(fRec.fFlags & kSubpixelPositioning_Flag); + } + // remember our glyph offset/base void setBaseGlyphCount(unsigned baseGlyphCount) { fBaseGlyphCount = baseGlyphCount; |