Index: experimental/PdfViewer/SkPdfUtils.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfUtils.h (revision 11730) |
+++ experimental/PdfViewer/SkPdfUtils.h (working copy) |
@@ -30,6 +30,8 @@ |
kCount_SkPdfResult |
}; |
+// In order to operate fast, when we parse the pdf, we try not to allocate many new strings, |
+// and if possible we refer the string in the pdf stream. |
struct NotOwnedString { |
const unsigned char* fBuffer; |
// TODO(edisonn): clean up, the last two bytes are used to signal if compression is used |