Index: src/core/SkPictureRecord.h |
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h |
index d80182cf8cca9c2f4ad1ce48196ad43412b879e8..da79fc1bbb013b3558452e60b493f165fdcf22a2 100644 |
--- a/src/core/SkPictureRecord.h |
+++ b/src/core/SkPictureRecord.h |
@@ -131,7 +131,7 @@ private: |
* operates in this manner. |
*/ |
size_t addDraw(DrawType drawType, uint32_t* size) { |
- size_t offset = fWriter.size(); |
+ size_t offset = fWriter.bytesWritten(); |
this->predrawNotify(); |
@@ -212,7 +212,7 @@ private: |
#else |
public: |
void validate(size_t initialOffset, uint32_t size) const { |
- SkASSERT(fWriter.size() == initialOffset + size); |
+ SkASSERT(fWriter.bytesWritten() == initialOffset + size); |
} |
#endif |