Index: experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp (revision 11092) |
+++ experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp (working copy) |
@@ -66,6 +66,8 @@ |
} |
bool SkPdfNativeObject::filterStream() { |
+ SkPdfMarkObjectUsed(); |
+ |
if (!hasStream()) { |
return false; |
} |
@@ -100,6 +102,10 @@ |
} |
void SkPdfNativeObject::releaseData() { |
+ // TODO(edisonn): report here unused objects |
+ |
+ SkPdfMarkObjectUnused(); |
+ |
if (fData) { |
switch (fDataType) { |
case kFont_Data: |