Index: src/fonts/SkRandomScalerContext.cpp |
diff --git a/src/fonts/SkRandomScalerContext.cpp b/src/fonts/SkRandomScalerContext.cpp |
index 799e51df820e5b9803e6a1aa55786420bd9c5caa..0693682faa707dcdcb9609d75a3b31bec79fd7bd 100644 |
--- a/src/fonts/SkRandomScalerContext.cpp |
+++ b/src/fonts/SkRandomScalerContext.cpp |
@@ -63,7 +63,7 @@ |
// Here we will change the mask format of the glyph |
// NOTE this is being overridden by the base class |
SkMask::Format format; |
- switch (glyph->getGlyphID() % 4) { |
+ switch (glyph->getGlyphID() % 3) { |
case 0: |
format = SkMask::kLCD16_Format; |
break; |
@@ -72,9 +72,6 @@ |
break; |
case 2: |
format = SkMask::kARGB32_Format; |
- break; |
- case 3: |
- format = SkMask::kBW_Format; |
break; |
} |
@@ -135,7 +132,7 @@ |
void SkRandomScalerContext::generateImage(const SkGlyph& glyph) { |
SkMask::Format format = (SkMask::Format)glyph.fMaskFormat; |
- switch (glyph.getGlyphID() % 4) { |
+ switch (glyph.getGlyphID() % 3) { |
case 0: |
format = SkMask::kLCD16_Format; |
break; |
@@ -144,9 +141,6 @@ |
break; |
case 2: |
format = SkMask::kARGB32_Format; |
- break; |
- case 3: |
- format = SkMask::kBW_Format; |
break; |
} |
const_cast<SkGlyph&>(glyph).fMaskFormat = format; |