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
This commit is contained in:
parent
7a61793d96
commit
0fce1fb02d
@ -56,6 +56,8 @@ static const int kMediumDFFontLimit = 72;
|
||||
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 @@ inline bool GrAtlasTextContext::canDrawAsDistanceFields(const SkPaint& skPaint,
|
||||
}
|
||||
|
||||
if (!fEnableDFRendering && !skPaint.isDistanceFieldTextTEMP() &&
|
||||
scaledTextSize < kLargeDFFontSize) {
|
||||
scaledTextSize < kLargeGlyphLimit) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user