Index: experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp (revision 9990) |
+++ experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp (working copy) |
@@ -651,6 +651,7 @@ |
} |
SkPdfObject* SkPdfAllocator::allocBlock() { |
+ fSizeInBytes += BUFFER_SIZE * sizeof(SkPdfObject); |
return new SkPdfObject[BUFFER_SIZE]; |
} |
@@ -675,6 +676,7 @@ |
fHistory.push(fCurrent); |
fCurrent = allocBlock(); |
fCurrentUsed = 0; |
+ fSizeInBytes += sizeof(SkPdfObject*); |
} |
fCurrentUsed++; |
return &fCurrent[fCurrentUsed - 1]; |