diff options
Diffstat (limited to 'src/core/SkPathHeap.cpp')
-rw-r--r-- | src/core/SkPathHeap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkPathHeap.cpp b/src/core/SkPathHeap.cpp index 8713e7672f..3add392ca1 100644 --- a/src/core/SkPathHeap.cpp +++ b/src/core/SkPathHeap.cpp @@ -8,7 +8,7 @@ #include "SkPathHeap.h" #include "SkPath.h" #include "SkStream.h" -#include "SkFlattenable.h" +#include "SkFlattenableBuffers.h" #include <new> SK_DEFINE_INST_COUNT(SkPathHeap) @@ -20,7 +20,7 @@ SkPathHeap::SkPathHeap() : fHeap(kPathCount * sizeof(SkPath)) { SkPathHeap::SkPathHeap(SkFlattenableReadBuffer& buffer) : fHeap(kPathCount * sizeof(SkPath)) { - int count = buffer.readS32(); + const int count = buffer.readInt(); fPaths.setCount(count); SkPath** ptr = fPaths.begin(); @@ -53,7 +53,7 @@ int SkPathHeap::append(const SkPath& path) { void SkPathHeap::flatten(SkFlattenableWriteBuffer& buffer) const { int count = fPaths.count(); - buffer.write32(count); + buffer.writeInt(count); SkPath** iter = fPaths.begin(); SkPath** stop = fPaths.end(); while (iter < stop) { |