aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-28 17:26:42 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-09-28 17:26:42 +0000
commit2739b27d7d13691603d07982ff0d6dd0658bd364 (patch)
tree75c09c0301d8f5375cb995d355ed513d3e039f61 /src/core
parent421093d99c36f5b4f0dbab03cbc3e544bd03fd59 (diff)
move specialization of 16 -vs- 32 lcd format to the fonthost
git-svn-id: http://skia.googlecode.com/svn/trunk@2351 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkPaint.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index 4afbed9c17..9197adde0f 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -1195,6 +1195,7 @@ static void add_flattenable(SkDescriptor* desc, uint32_t tag,
buffer->flatten(desc->addEntry(tag, buffer->size(), NULL));
}
+// SkFontHost can override this choice in FilterRec()
static SkMask::Format computeMaskFormat(const SkPaint& paint) {
uint32_t flags = paint.getFlags();
@@ -1204,11 +1205,7 @@ static SkMask::Format computeMaskFormat(const SkPaint& paint) {
}
if (flags & SkPaint::kLCDRenderText_Flag) {
-#if !defined(SK_SUPPORT_888_TEXT)
return SkMask::kLCD16_Format;
-#else
- return SkMask::kLCD32_Format;
-#endif
}
return SkMask::kA8_Format;