Lines Matching defs:buffer
199 void SkLayerDrawLooper::flatten(SkWriteBuffer& buffer) const {
200 buffer.writeInt(fCount);
205 buffer.writeInt(0);
207 buffer.writeInt(rec->fInfo.fPaintBits);
208 buffer.writeInt((int)rec->fInfo.fColorMode);
209 buffer.writePoint(rec->fInfo.fOffset);
210 buffer.writeBool(rec->fInfo.fPostTranslate);
211 buffer.writePaint(rec->fPaint);
216 sk_sp<SkFlattenable> SkLayerDrawLooper::CreateProc(SkReadBuffer& buffer) {
217 int count = buffer.readInt();
228 (void)buffer.readInt();
230 info.fPaintBits = buffer.readInt();
231 info.fColorMode = (SkBlendMode)buffer.readInt();
232 buffer.readPoint(&info.fOffset);
233 info.fPostTranslate = buffer.readBool();
234 *builder.addLayerOnTop(info) = buffer.readPaint();
235 if (!buffer.isValid()) {