Lines Matching refs:glyphCount

162             const int glyphCount = font.countText(txt, txtLen, kUTF8_SkTextEncoding);  in TestBounds()  local
163 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, glyphCount); in TestBounds()
165 font.textToGlyphs(txt, txtLen, kUTF8_SkTextEncoding, buffer.glyphs, glyphCount); in TestBounds()
167 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2); in TestBounds()
231 unsigned glyphCount = 0; in RunBuilderTest() local
236 glyphCount += in[i].count; in RunBuilderTest()
250 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount()); in RunBuilderTest()
258 for (unsigned k = 0; k < it.glyphCount(); ++k) { in RunBuilderTest()
322 int glyphCount = font.countText(text1, strlen(text1), kUTF8_SkTextEncoding); in DEF_TEST() local
323 SkAutoTMalloc<uint16_t> glyphs(glyphCount); in DEF_TEST()
324 (void)font.textToGlyphs(text1, strlen(text1), kUTF8_SkTextEncoding, glyphs.get(), glyphCount); in DEF_TEST()
327 font, glyphCount, 0, 0, SkToInt(strlen(text2)), SkString(), nullptr); in DEF_TEST()
328 memcpy(run.glyphs, glyphs.get(), sizeof(uint16_t) * glyphCount); in DEF_TEST()
330 for (int i = 0; i < glyphCount; ++i) { in DEF_TEST()
337 REPORTER_ASSERT(reporter, it.glyphCount() == (uint32_t)glyphCount); in DEF_TEST()
338 for (uint32_t i = 0; i < it.glyphCount(); ++i) { in DEF_TEST()
345 for (uint32_t i = 0; i < it.glyphCount(); ++i) { in DEF_TEST()
365 int glyphCount = font.countText(text, strlen(text), kUTF8_SkTextEncoding); in add_run() local
367 SkTextBlobBuilder::RunBuffer buffer = builder->allocRun(font, glyphCount, x, y); in add_run()
369 (void)font.textToGlyphs(text, strlen(text), kUTF8_SkTextEncoding, buffer.glyphs, glyphCount); in add_run()
442 REPORTER_ASSERT(reporter, it.glyphCount() == strlen(text)); in DEF_TEST()