aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAtlasTextContext.cpp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-06-22 08:08:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-22 08:08:09 -0700
commit34d7288b19920bfb98a6eb280a906840aac51879 (patch)
tree1ecb1e868407b9dab7c7b7942e0857d55fa27ba9 /src/gpu/GrAtlasTextContext.cpp
parent4854d13c27f6e3f8f763afd291821ce42324e645 (diff)
Change large glyph check back to > threshold.
Using >= misses some Chromium test cases that are still being rendered as paths. BUG=chromium:467569 Review URL: https://codereview.chromium.org/1202433002
Diffstat (limited to 'src/gpu/GrAtlasTextContext.cpp')
-rw-r--r--src/gpu/GrAtlasTextContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
index aa51cd2c30..c25ddd25e2 100644
--- a/src/gpu/GrAtlasTextContext.cpp
+++ b/src/gpu/GrAtlasTextContext.cpp
@@ -442,7 +442,7 @@ inline bool GrAtlasTextContext::canDrawAsDistanceFields(const SkPaint& skPaint,
SkScalar scaledTextSize = maxScale*skPaint.getTextSize();
// Hinted text looks far better at small resolutions
// Scaling up beyond 2x yields undesireable artifacts
- if (scaledTextSize < kMinDFFontSize || scaledTextSize >= kLargeDFFontLimit) {
+ if (scaledTextSize < kMinDFFontSize || scaledTextSize > kLargeDFFontLimit) {
return false;
}