#define GEN_ID_PTR_INC(ptr)
#endif
-class SkFlattenableReadBuffer;
-class SkFlattenableWriteBuffer;
+class SkReader32;
+class SkWriter32;
class SkAutoPathBoundsUpdate;
class SkString;
void dump(bool forceClose, const char title[] = NULL) const;
void dump() const;
- void flatten(SkFlattenableWriteBuffer&) const;
- void unflatten(SkFlattenableReadBuffer&);
+ void flatten(SkWriter32&) const;
+ void unflatten(SkReader32&);
/** Subdivide the path so that no segment is longer that dist.
If bendLines is true, then turn all line segments into curves.
*/
#include "SkPath.h"
-#include "SkFlattenable.h"
+#include "SkReader32.h"
+#include "SkWriter32.h"
#include "SkMath.h"
////////////////////////////////////////////////////////////////////////////
Format in flattened buffer: [ptCount, verbCount, pts[], verbs[]]
*/
-void SkPath::flatten(SkFlattenableWriteBuffer& buffer) const {
+void SkPath::flatten(SkWriter32& buffer) const {
SkDEBUGCODE(this->validate();)
buffer.write32(fPts.count());
buffer.writePad(fVerbs.begin(), fVerbs.count());
}
-void SkPath::unflatten(SkFlattenableReadBuffer& buffer) {
+void SkPath::unflatten(SkReader32& buffer) {
fPts.setCount(buffer.readS32());
fVerbs.setCount(buffer.readS32());
fFillType = buffer.readS32();