Home | History | Annotate | Download | only in tests

Lines Matching refs:glyphs

28     uint16_t glyphs[5];
29 sk_bzero(glyphs, sizeof(glyphs));
31 // Check that no glyphs are copied with insufficient storage.
32 int count = font.textToGlyphs("Hello", 5, kUTF8_SkTextEncoding, glyphs, 2);
34 for (const auto glyph : glyphs) { REPORTER_ASSERT(reporter, glyph == 0); }
36 SkAssertResult(font.textToGlyphs("Hello", 5, kUTF8_SkTextEncoding, glyphs,
37 SK_ARRAY_COUNT(glyphs)) == count);
40 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
42 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
43 REPORTER_ASSERT(reporter, glyphs[2] == glyphs[3]); // 'l' == 'l'
139 uint16_t glyphs[], int glyphCount) const override {
140 if (glyphs && glyphCount > 0) {
141 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));