Index: src/gpu/batches/GrAtlasTextBatch.cpp |
diff --git a/src/gpu/batches/GrAtlasTextBatch.cpp b/src/gpu/batches/GrAtlasTextBatch.cpp |
index 432322ff7abd3297a2fd7e70484801131a1272bd..1d8d7fe143ab1e61eed45145b2e9dedd53e4e673 100644 |
--- a/src/gpu/batches/GrAtlasTextBatch.cpp |
+++ b/src/gpu/batches/GrAtlasTextBatch.cpp |
@@ -261,11 +261,11 @@ GrGeometryProcessor* GrAtlasTextBatch::setupDfProcessor(const SkMatrix& viewMatr |
bool isLCD = this->isLCD(); |
// set up any flags |
uint32_t flags = viewMatrix.isSimilarity() ? kSimilarity_DistanceFieldEffectFlag : 0; |
+ flags |= viewMatrix.isScaleTranslate() ? kScaleOnly_DistanceFieldEffectFlag : 0; |
// see if we need to create a new effect |
if (isLCD) { |
flags |= kUseLCD_DistanceFieldEffectFlag; |
- flags |= viewMatrix.rectStaysRect() ? kRectToRect_DistanceFieldEffectFlag : 0; |
flags |= fUseBGR ? kBGR_DistanceFieldEffectFlag : 0; |
GrColor colorNoPreMul = skcolor_to_grcolor_nopremultiply(filteredColor); |