void SkPath1DPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { this->INHERITED::flatten(buffer); buffer.writeScalar(fAdvance); if (fAdvance > 0) { buffer.writePath(fPath); buffer.writeScalar(fInitialOffset); buffer.write8(fStyle); } }
void SkPathHeap::flatten(SkFlattenableWriteBuffer& buffer) const { int count = fPaths.count(); buffer.writeInt(count); SkPath* const* iter = fPaths.begin(); SkPath* const* stop = fPaths.end(); while (iter < stop) { buffer.writePath(**iter); iter++; } }
void SkPath2DPathEffect::flatten(SkFlattenableWriteBuffer& buffer) const { this->INHERITED::flatten(buffer); buffer.writePath(fPath); }