Lines Matching refs:glyphCount

38 size_t SkTextBlob::RunRecord::StorageSize(uint32_t glyphCount, uint32_t textSize,  in StorageSize()  argument
43 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize()
44 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize()
53 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize()
101 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe)); in NextUnchecked()
106 size_t SkTextBlob::RunRecord::PosCount(uint32_t glyphCount, in PosCount() argument
109 return safe->mul(glyphCount, ScalarsPerGlyph(positioning)); in PosCount()
264 font.measureText(run.glyphBuffer(), run.glyphCount() * sizeof(uint16_t), in TightRunBounds()
269 SkAutoSTArray<16, SkRect> glyphBounds(run.glyphCount()); in TightRunBounds()
270 font.getBounds(run.glyphBuffer(), run.glyphCount(), glyphBounds.get(), nullptr); in TightRunBounds()
286 for (unsigned i = 0; i < run.glyphCount(); ++i) { in TightRunBounds()
302 SkASSERT(run.glyphCount() > 0); in ConservativeRunBounds()
319 SkASSERT((void*)(glyphPos + run.glyphCount()) <= SkTextBlob::RunRecord::Next(&run)); in ConservativeRunBounds()
323 for (unsigned i = 1; i < run.glyphCount(); ++i) { in ConservativeRunBounds()
333 SkASSERT((void*)(glyphPosPts + run.glyphCount()) <= SkTextBlob::RunRecord::Next(&run)); in ConservativeRunBounds()
335 bounds.setBounds(glyphPosPts, run.glyphCount()); in ConservativeRunBounds()
339 SkASSERT((void*)(xform + run.glyphCount()) <= SkTextBlob::RunRecord::Next(&run)); in ConservativeRunBounds()
341 for (unsigned i = 1; i < run.glyphCount(); ++i) { in ConservativeRunBounds()
414 SkASSERT(run->glyphCount() > 0); in mergeRun()
422 || (run->glyphCount() + count < run->glyphCount())) { in mergeRun()
438 SkTextBlob::RunRecord::StorageSize(run->glyphCount() + count, 0, positioning, &safe) - in mergeRun()
439 SkTextBlob::RunRecord::StorageSize(run->glyphCount() , 0, positioning, &safe); in mergeRun()
448 uint32_t preMergeCount = run->glyphCount(); in mergeRun()
625 int glyphCount, const SkScalar bounds[2], SkScalar* array, Func posMaker) { in GetTextIntercepts() argument
626 SkASSERT(glyphCount == 0 || glyphs != nullptr); in GetTextIntercepts()
629 SkTextInterceptsIter iter(glyphs, glyphCount, font, paint, bounds, pos0.x(), pos0.y(), in GetTextIntercepts()
653 const int glyphCount = it.glyphCount(); in getIntercepts() local
659 font, paint, glyphs, glyphCount, bounds, runIntervals, [loc] (int) { in getIntercepts()
667 font, paint, glyphs, glyphCount, bounds, runIntervals, [xpos, constY] (int i) { in getIntercepts()
674 font, paint, glyphs, glyphCount, bounds, runIntervals, [pos] (int i) { in getIntercepts()
698 SkASSERT(it.glyphCount() > 0); in Flatten()
700 buffer.write32(it.glyphCount()); in Flatten()
716 buffer.writeByteArray(it.glyphs(), it.glyphCount() * sizeof(uint16_t)); in Flatten()
718 it.glyphCount() * sizeof(SkScalar) * in Flatten()
722 buffer.writeByteArray(it.clusters(), sizeof(uint32_t) * it.glyphCount()); in Flatten()
740 int glyphCount = reader.read32(); in MakeFromBuffer() local
741 if (glyphCount == 0) { in MakeFromBuffer()
749 if (glyphCount <= 0 || pos > SkTextBlob::kRSXform_Positioning) { in MakeFromBuffer()
769 const size_t glyphSize = safe.mul(glyphCount, sizeof(uint16_t)), in MakeFromBuffer()
771 safe.mul(glyphCount, safe.mul(sizeof(SkScalar), in MakeFromBuffer()
773 clusterSize = pe.extended ? safe.mul(glyphCount, sizeof(uint32_t)) : 0; in MakeFromBuffer()
784 buf = &blobBuilder.allocRunText(font, glyphCount, offset.x(), offset.y(), in MakeFromBuffer()
788 buf = &blobBuilder.allocRunTextPosH(font, glyphCount, offset.y(), in MakeFromBuffer()
792 buf = &blobBuilder.allocRunTextPos(font, glyphCount, textSize, SkString(), &bounds); in MakeFromBuffer()
795 buf = &blobBuilder.allocRunRSXform(font, glyphCount, textSize, SkString(), &bounds); in MakeFromBuffer()