Adjust distance field glyph and font atlas sizes to maximize storage.
authorjvanverth <jvanverth@google.com>
Mon, 9 Mar 2015 16:45:40 +0000 (09:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 16:45:40 +0000 (09:45 -0700)
commitd2737ad7dd8f4ea94a74034027014fd3d78923cb
tree2fc9c86058766a35e08c5b71b64f5cb43019d42b
parent86e31a19800bd15dafa317bd0ab54a27dc39a6b5
Adjust distance field glyph and font atlas sizes to maximize storage.

Because of high DPI devices, we need more room in the glyph
atlas for the larger glyphs. These settings will allow 4 of
the distance field glyphs to fit in one Plot (increasing
the storage from 32 large glyphs to 128), and still permit
us to handle glyphs up to a 312 point size.

BUG=chromium:458791

Review URL: https://codereview.chromium.org/986343002
src/gpu/GrDistanceFieldTextContext.cpp
src/gpu/GrFontAtlasSizes.h