Index: src/gpu/GrDistanceFieldTextContext.cpp |
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp |
index a1f5ce66608bac5cdf9ab934faffde042257f25d..baba10d570614ec2d106e12138ffd7a64242a9f2 100755 |
--- a/src/gpu/GrDistanceFieldTextContext.cpp |
+++ b/src/gpu/GrDistanceFieldTextContext.cpp |
@@ -412,11 +412,6 @@ |
return; |
} |
- // TODO: support color glyphs |
- if (kA8_GrMaskFormat != glyph->fMaskFormat) { |
- return; |
- } |
- |
SkScalar sx = SkFixedToScalar(vx); |
SkScalar sy = SkFixedToScalar(vy); |
/* |
@@ -445,7 +440,7 @@ |
} |
// try to clear out an unused plot before we flush |
- if (fContext->getFontCache()->freeUnusedPlot(fStrike, glyph) && |
+ if (fContext->getFontCache()->freeUnusedPlot(fStrike) && |
fStrike->addGlyphToAtlas(glyph, scaler)) { |
goto HAS_ATLAS; |
} |
@@ -461,7 +456,7 @@ |
fContext->flush(); |
// we should have an unused plot now |
- if (fContext->getFontCache()->freeUnusedPlot(fStrike, glyph) && |
+ if (fContext->getFontCache()->freeUnusedPlot(fStrike) && |
fStrike->addGlyphToAtlas(glyph, scaler)) { |
goto HAS_ATLAS; |
} |