aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-03 19:43:20 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-01-03 19:43:20 +0000
commitabf00aaaa0262905ad19b0a0ed654c87276490fc (patch)
tree52abac8d896bac7f5dc40a474ecfa45493c92acd /src/core
parent39dab77070ca287746a7c2188c60de38ae51b3e8 (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 'src/core')
-rw-r--r--src/core/SkGlyphCache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h
index 9e630cd0d0..090a73f426 100644
--- a/src/core/SkGlyphCache.h
+++ b/src/core/SkGlyphCache.h
@@ -94,6 +94,10 @@ public:
return fScalerContext->getMaskFormat();
}
+ bool isSubpixel() const {
+ return fScalerContext->isSubpixel();
+ }
+
/* AuxProc/Data allow a client to associate data with this cache entry.
Multiple clients can use this, as their data is keyed with a function
pointer. In addition to serving as a key, the function pointer is called