Fix MSAN where glyphs are uninitialized in tests

Change-Id: I1d8874e1371ce2ddeba119b097d018ad94aa474c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/541016
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
Herb Derby 2022-05-16 14:09:00 -04:00 committed by SkCQ
parent 067a4f2609
commit a604dc364f

View File

@ -329,7 +329,8 @@ DEF_TEST(SubRunAllocator, r) {
DEF_TEST(KeyEqualityOnPerspective, r) {
SkTextBlobBuilder builder;
SkFont font(SkTypeface::MakeDefault(), 16);
builder.allocRun(font, 1, 0.0f, 0.0f);
auto runBuffer = builder.allocRun(font, 1, 0.0f, 0.0f);
runBuffer.glyphs[0] = 3;
auto blob = builder.make();
SkGlyphRunBuilder grBuilder;
auto glyphRunList = grBuilder.blobToGlyphRunList(*blob, {100, 100});