Lines Matching refs:buffer

47     // RunRecord object + (aligned) glyph buffer + position buffer
114 // textSize follows the position buffer.
651 void SkTextBlobPriv::Flatten(const SkTextBlob& blob, SkWriteBuffer& buffer) {
654 buffer.writeRect(blob.bounds());
660 buffer.write32(it.glyphCount());
668 buffer.write32(pe.intValue);
670 buffer.write32(textSize);
672 buffer.writePoint(it.offset());
674 SkFontPriv::Flatten(it.font(), buffer);
676 buffer.writeByteArray(it.glyphs(), it.glyphCount() * sizeof(uint16_t));
677 buffer.writeByteArray(it.pos(),
682 buffer.writeByteArray(it.clusters(), sizeof(uint32_t) * it.glyphCount());
683 buffer.writeByteArray(it.text(), it.textSize());
690 buffer.write32(0);
722 // Compute the expected size of the buffer and ensure we have enough to deserialize
785 auto buffer = builder.allocRunPos(font, count);
786 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
787 font.getPos(buffer.glyphs, count, buffer.points(), {0, 0});
799 auto buffer = builder.allocRunPos(font, count);
800 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
801 memcpy(buffer.points(), pos, count * sizeof(SkPoint));
813 auto buffer = builder.allocRunPosH(font, count, constY);
814 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
815 memcpy(buffer.pos, xpos, count * sizeof(SkScalar));
827 auto buffer = builder.allocRunRSXform(font, count);
828 font.textToGlyphs(text, byteLength, encoding, buffer.glyphs, count);
829 memcpy(buffer.xforms(), xform, count * sizeof(SkRSXform));
834 SkBinaryWriteBuffer buffer;
835 buffer.setSerialProcs(procs);
836 SkTextBlobPriv::Flatten(*this, buffer);
838 size_t total = buffer.bytesWritten();
840 buffer.writeToMemory(data->writable_data());
846 SkReadBuffer buffer(data, length);
847 buffer.setDeserialProcs(procs);
848 return SkTextBlobPriv::MakeFromBuffer(buffer);
862 SkBinaryWriteBuffer buffer(memory, memory_size);
863 buffer.setSerialProcs(procs);
864 SkTextBlobPriv::Flatten(*this, buffer);
865 return buffer.usingInitialStorage() ? buffer.bytesWritten() : 0u;