diff options
author | 2018-01-29 15:09:26 -0500 | |
---|---|---|
committer | 2018-01-30 15:08:15 +0000 | |
commit | b42610aa9b0e431c5658f7f9ada8553e4f90869c (patch) | |
tree | bcf46029ba3f6bbcd19a616a00098654c82d1dfe /src/gpu/text/GrAtlasTextContext.cpp | |
parent | 6a0176bf033c780bb92396220db8140f30948345 (diff) |
Reduce the amount of padding needed for SDFs.
SDF glyphs and paths were padded by 4 pixels, and had an inset of 2
pixels within that for rendering the shape. We should be able to
use a pad of 1, and the original bounds for the shape. This allows us
to increase the maximum size in the atlas.
Bug: skia:
Change-Id: I844d6afc4e0a52fc49fe1f6df94b635779290307
Reviewed-on: https://skia-review.googlesource.com/101440
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/text/GrAtlasTextContext.cpp')
-rw-r--r-- | src/gpu/text/GrAtlasTextContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp index 1dce4e0d44..a404eed5cd 100644 --- a/src/gpu/text/GrAtlasTextContext.cpp +++ b/src/gpu/text/GrAtlasTextContext.cpp @@ -23,9 +23,9 @@ // which we switch over to drawing as paths as controlled by Options. static const int kSmallDFFontSize = 32; static const int kSmallDFFontLimit = 32; -static const int kMediumDFFontSize = 72; -static const int kMediumDFFontLimit = 72; -static const int kLargeDFFontSize = 162; +static const int kMediumDFFontSize = 75; +static const int kMediumDFFontLimit = 75; +static const int kLargeDFFontSize = 168; static const int kDefaultMinDistanceFieldFontSize = 18; #ifdef SK_BUILD_FOR_ANDROID |