Turn on bilerp support for the atlas in viewer
Because the viewer's device matrix supports higher dpi, the GM_slug view asserts because there is no padding to support bi-lerp glyph drawing. Always turn on bi-lerp atlas padding in viewer. Change-Id: I34dc29f5097a28aab272efc59cfc6bcde2400f8e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/558641 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
parent
3e2c3b98e5
commit
b882f08762
@ -405,6 +405,7 @@ Viewer::Viewer(int argc, char** argv, void* platformData)
|
||||
GrContextOptions::ShaderCacheStrategy::kSkSL;
|
||||
displayParams.fGrContextOptions.fShaderErrorHandler = &gShaderErrorHandler;
|
||||
displayParams.fGrContextOptions.fSuppressPrints = true;
|
||||
displayParams.fGrContextOptions.fSupportBilerpFromGlyphAtlas = true;
|
||||
if (FLAGS_dmsaa) {
|
||||
displayParams.fSurfaceProps = SkSurfaceProps(
|
||||
displayParams.fSurfaceProps.flags() | SkSurfaceProps::kDynamicMSAA_Flag,
|
||||
|
Loading…
Reference in New Issue
Block a user