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:
parent
067a4f2609
commit
a604dc364f
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user