Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 4ce29c8dbb25a68b053df08dd7a39c64cc2126ed..f2d959d3d6c8bb5d11af8a69f48a2acad892bab2 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -66,10 +66,10 @@ SkPicturePlayback::SkPicturePlayback(const SkPictureRecord& record, bool deepCop |
record.dumpPaints(); |
#endif |
- record.validate(record.writeStream().size(), 0); |
+ record.validate(record.writeStream().bytesWritten(), 0); |
const SkWriter32& writer = record.writeStream(); |
init(); |
- if (writer.size() == 0) { |
+ if (writer.bytesWritten() == 0) { |
fOpData = SkData::NewEmpty(); |
return; |
} |
@@ -85,7 +85,7 @@ SkPicturePlayback::SkPicturePlayback(const SkPictureRecord& record, bool deepCop |
} |
{ |
- size_t size = writer.size(); |
+ size_t size = writer.bytesWritten(); |
void* buffer = sk_malloc_throw(size); |
writer.flatten(buffer); |
SkASSERT(!fOpData); |