Index: experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (revision 10438) |
+++ experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (working copy) |
@@ -519,6 +519,11 @@ |
} |
if (fObjects[id].fResolvedReference != NULL) { |
+ |
+#ifdef PDF_TRACE |
+ printf("\nresolve(%s) = %s\n", ref->toString(0).c_str(), fObjects[id].fResolvedReference->toString(0, ref->toString().size() + 13).c_str()); |
+#endif |
+ |
return fObjects[id].fResolvedReference; |
} |
@@ -534,8 +539,14 @@ |
} |
} |
+#ifdef PDF_TRACE |
+ printf("\nresolve(%s) = %s\n", ref->toString(0).c_str(), fObjects[id].fResolvedReference->toString(0, ref->toString().size() + 13).c_str()); |
+#endif |
return fObjects[id].fResolvedReference; |
} |
+ |
+ |
+ |
// TODO(edisonn): fix the mess with const, probably we need to remove it pretty much everywhere |
return (SkPdfObject*)ref; |
} |