Bump up point where we switch to distance fields for large glyphs
This is hopefully a temporary fix. It's unclear why distance fields
are so much slower on the N4 (and N7).
BUG=chromium:467569
Review URL: https://codereview.chromium.org/1184153004
diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
index 1006d4e..75aaf04 100644
--- a/src/gpu/GrAtlasTextContext.cpp
+++ b/src/gpu/GrAtlasTextContext.cpp
@@ -56,6 +56,8 @@
static const int kLargeDFFontSize = 162;
static const int kLargeDFFontLimit = 2 * kLargeDFFontSize;
+static const int kLargeGlyphLimit = 192;
+
SkDEBUGCODE(static const int kExpectedDistanceAdjustTableSize = 8;)
static const int kDistanceAdjustLumShift = 5;
@@ -453,7 +455,7 @@
}
if (!fEnableDFRendering && !skPaint.isDistanceFieldTextTEMP() &&
- scaledTextSize < kLargeDFFontSize) {
+ scaledTextSize < kLargeGlyphLimit) {
return false;
}