diff options
author | 2011-04-25 19:04:27 +0000 | |
---|---|---|
committer | 2011-04-25 19:04:27 +0000 | |
commit | 739456585a0cc52b335cd1c0a9fc6b01782a7f89 (patch) | |
tree | 54bbb925b8a340e66e39489d7111f8fc7d613e8d /src/core/SkPath.cpp | |
parent | 4711a7ae9533c9d755296c3991339dfcbf46b0df (diff) |
devolve flattening parameters to their base classes
e.g. FlattenableReadBufer -> Reader32
git-svn-id: http://skia.googlecode.com/svn/trunk@1174 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r-- | src/core/SkPath.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 5ddc31ddad..704863cc87 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -16,7 +16,8 @@ */ #include "SkPath.h" -#include "SkFlattenable.h" +#include "SkReader32.h" +#include "SkWriter32.h" #include "SkMath.h" //////////////////////////////////////////////////////////////////////////// @@ -1267,7 +1268,7 @@ DONE: 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()); @@ -1277,7 +1278,7 @@ void SkPath::flatten(SkFlattenableWriteBuffer& buffer) const { 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(); |