Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning""
This reverts commit 1e787c38fa71f2a21fd728f1b1d620b9b09b0d3d.
BUG=
Review URL: https://codereview.chromium.org/54603004
git-svn-id: http://skia.googlecode.com/svn/trunk@12057 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index d80182c..da79fc1 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -131,7 +131,7 @@
* 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 @@
#else
public:
void validate(size_t initialOffset, uint32_t size) const {
- SkASSERT(fWriter.size() == initialOffset + size);
+ SkASSERT(fWriter.bytesWritten() == initialOffset + size);
}
#endif