Home | History | Annotate | Download | only in core

Lines Matching defs:textSize

117 //    ... | RunRecord | Glyphs[] | Pos[] | TextSize | Clusters[] | Text[] | ...
120 // To determine the length of the extended run data, the TextSize must be read.
138 RunRecord(uint32_t count, uint32_t textSize, const SkPoint& offset, const SkPaint& font, GlyphPositioning pos)
146 if (textSize > 0) {
148 *this->textSizePtr() = textSize;
180 uint32_t textSize() const { return isExtended() ? *this->textSizePtr() : 0; }
183 // clusters follow the textSize.
193 static size_t StorageSize(uint32_t glyphCount, uint32_t textSize,
206 if (textSize) { // Extended run.
209 size = safe->add(size, textSize);
232 SkASSERT(textSize() > 0);
235 SkASSERT(textBuffer() + textSize() <= (char*)NextUnchecked(this));
254 + StorageSize(run->glyphCount(), run->textSize(), run->positioning(), &safe));
266 // textSize follows the position buffer.
403 uint32_t SkTextBlobRunIterator::textSize() const {
405 return fCurrentRun->textSize();
580 if (run->textSize() != 0) {
630 int count, int textSize, SkPoint offset,
632 if (count <= 0 || textSize < 0 || font.getTextEncoding() != SkPaint::kGlyphID_TextEncoding) {
637 if (textSize != 0 || !this->mergeRun(font, positioning, count, offset)) {
641 size_t runSize = SkTextBlob::RunRecord::StorageSize(count, textSize, positioning, &safe);
653 SkTextBlob::RunRecord(count, textSize, offset, font, positioning);
666 SkASSERT(textSize > 0 || nullptr == fCurrentRunBuffer.utf8text);
667 SkASSERT(textSize > 0 || nullptr == fCurrentRunBuffer.clusters);
732 run->fCount, run->textSize(), run->positioning(), &safe);
766 uint32_t textSize = it.textSize();
767 pe.extended = textSize > 0;
770 buffer.write32(textSize);
782 buffer.writeByteArray(it.text(), it.textSize());
810 int textSize = pe.extended ? reader.read32() : 0;
811 if (textSize < 0) {
828 textSize, SkString(), &bounds);
832 textSize, SkString(), &bounds);
835 buf = &blobBuilder.allocRunTextPos(font, glyphCount, textSize, SkString(), &bounds);
855 !reader.readByteArray(buf->utf8text, textSize)) {