Lines Matching defs:run
25 // empty run set
172 // Verify that text-related properties are captured in run paints.
320 auto run = textBlobBuilder.allocRunText(font, glyphCount, 0, 0, SkToInt(strlen(text2)));
321 memcpy(run.glyphs, glyphs.get(), sizeof(uint16_t) * glyphCount);
322 memcpy(run.utf8text, text2, strlen(text2));
324 run.clusters[i] = std::min(SkToU32(i), SkToU32(strlen(text2)));
460 SkTextBlob::Iter::Run run;
462 REPORTER_ASSERT(reporter, iter.next(&run));
463 REPORTER_ASSERT(reporter, run.fTypeface == exp.fTypeface);
464 REPORTER_ASSERT(reporter, run.fGlyphCount == exp.fGlyphCount);
465 for (int i = 0; i < run.fGlyphCount; ++i) {
466 REPORTER_ASSERT(reporter, run.fGlyphIndices[i] != 0);
469 REPORTER_ASSERT(reporter, !iter.next(&run)); // we're done
472 REPORTER_ASSERT(reporter, iter2.next(&run));
474 REPORTER_ASSERT(reporter, run.fGlyphIndices[2] == run.fGlyphIndices[3]);