diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-06 10:36:57 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-06 16:06:09 +0000 |
commit | 9f545bc18a1fdff64d40104028c6d8449e660a6e (patch) | |
tree | 3f2b5eb9124f53d4fd9610445ceb5d374ae7d424 /include | |
parent | 97f0bc6a1a0d14fd7b9041c39449966535f9f431 (diff) |
Modify fontcache GM to actually spill atlas.
Adds an option to GrDrawOpAtlas to disable multitexturing.
Adds option to GrContextOptions to disable multitexturing for glyph atlases.
Change-Id: If413ab7061538fa0e75628d252be4fd14215b6ba
Reviewed-on: https://skia-review.googlesource.com/67802
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContextOptions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index 7aa85e0ed3..a3c914aa3b 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -114,6 +114,12 @@ struct GrContextOptions { float fGlyphCacheTextureMaximumBytes = 2048 * 1024 * 4; /** + * Can the glyph atlas use multiple textures. If allowed, the each texture's size is bound by + * fGlypheCacheTextureMaximumBytes. + */ + Enable fAllowMultipleGlyphCacheTextures = Enable::kDefault; + + /** * Bugs on certain drivers cause stencil buffers to leak. This flag causes Skia to avoid * allocating stencil buffers and use alternate rasterization paths, avoiding the leak. */ |