Lines Matching refs:buffer
43 void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const {
44 this->INHERITED::flatten(buffer);
46 buffer.writeByteArray(fStorage, fSize);
47 buffer.writeBool(fCTable != NULL);
49 buffer.writeFlattenable(fCTable);
53 SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer)
54 : INHERITED(buffer, NULL) {
55 fSize = buffer.getArrayCount();
57 buffer.readByteArray(fStorage);
58 if (buffer.readBool()) {
59 fCTable = buffer.readFlattenableT<SkColorTable>();