Lines Matching refs:buffer
171 SkImageRef::SkImageRef(SkFlattenableReadBuffer& buffer)
172 : INHERITED(buffer, &gImageRefMutex), fErrorInDecoding(false) {
173 fConfig = (SkBitmap::Config)buffer.readU8();
174 fSampleSize = buffer.readU8();
175 fDoDither = buffer.readBool();
177 size_t length = buffer.readU32();
179 buffer.read((void*)fStream->getMemoryBase(), length);
185 void SkImageRef::flatten(SkFlattenableWriteBuffer& buffer) const {
186 this->INHERITED::flatten(buffer);
188 buffer.write8(fConfig);
189 buffer.write8(fSampleSize);
190 buffer.writeBool(fDoDither);
192 buffer.write32(length);
194 buffer.readFromStream(fStream, length);