Lines Matching refs:buffer
183 void SkLayerDrawLooper::flatten(SkFlattenableWriteBuffer& buffer) {
184 this->INHERITED::flatten(buffer);
198 buffer.writeInt(fCount);
202 buffer.writeInt(rec->fInfo.fPaintBits);
203 buffer.writeInt(rec->fInfo.fColorMode);
204 buffer.writeScalar(rec->fInfo.fOffset.fX);
205 buffer.writeScalar(rec->fInfo.fOffset.fY);
206 buffer.writeBool(rec->fInfo.fPostTranslate);
207 rec->fPaint.flatten(buffer);
212 SkLayerDrawLooper::SkLayerDrawLooper(SkFlattenableReadBuffer& buffer)
213 : INHERITED(buffer),
217 int count = buffer.readInt();
221 if (buffer.getPictureVersion() == PICTURE_VERSION_ICS)
222 info.fFlagsMask = buffer.readInt();
223 info.fPaintBits = buffer.readInt();
224 info.fColorMode = (SkXfermode::Mode)buffer.readInt();
225 info.fOffset.fX = buffer.readScalar();
226 info.fOffset.fY = buffer.readScalar();
227 info.fPostTranslate = buffer.readBool();
228 this->addLayer(info)->unflatten(buffer);