diff options
author | 2013-07-10 17:09:50 +0000 | |
---|---|---|
committer | 2013-07-10 17:09:50 +0000 | |
commit | 571c70b95f56e22b5a7d6f4f288aa6c9a925a64f (patch) | |
tree | e0d3377d7e373350706d46722af8fe050abda9d3 /experimental/PdfViewer/SkPdfParser.h | |
parent | 89fa4b9ee6bc6039781acbdb6c097a41f894ea1c (diff) |
Native PDF parser implementation - don't try it on pdfs that are not generated by skia, Crome Print Preview or Chrome Save As Pdf - it will crash as mising xref, pdfs with updates, and other features are not supported yer.
Review URL: https://codereview.chromium.org/18323019
git-svn-id: http://skia.googlecode.com/svn/trunk@9962 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/PdfViewer/SkPdfParser.h')
-rw-r--r-- | experimental/PdfViewer/SkPdfParser.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/experimental/PdfViewer/SkPdfParser.h b/experimental/PdfViewer/SkPdfParser.h index 5841b12c3b..20f0cf5887 100644 --- a/experimental/PdfViewer/SkPdfParser.h +++ b/experimental/PdfViewer/SkPdfParser.h @@ -5,14 +5,12 @@ * found in the LICENSE file. */ -#include "SkPdfHeaders_autogen.h" -#include "SkPdfMapper_autogen.h" #ifndef SkPdfParser_DEFINED #define SkPdfParser_DEFINED #include "SkPdfBasics.h" -#include "SkPdfPodofoTokenizer.h" +#include "SkPdfNativeTokenizer.h" extern "C" PdfContext* gPdfContext; extern "C" SkBitmap* gDumpBitmap; @@ -22,13 +20,13 @@ extern "C" SkCanvas* gDumpCanvas; class PdfTokenLooper { protected: PdfTokenLooper* fParent; - SkPdfPodofoTokenizer* fTokenizer; + SkPdfNativeTokenizer* fTokenizer; PdfContext* fPdfContext; SkCanvas* fCanvas; public: PdfTokenLooper(PdfTokenLooper* parent, - SkPdfPodofoTokenizer* tokenizer, + SkPdfNativeTokenizer* tokenizer, PdfContext* pdfContext, SkCanvas* canvas) : fParent(parent), fTokenizer(tokenizer), fPdfContext(pdfContext), fCanvas(canvas) {} @@ -47,7 +45,7 @@ public: class PdfMainLooper : public PdfTokenLooper { public: PdfMainLooper(PdfTokenLooper* parent, - SkPdfPodofoTokenizer* tokenizer, + SkPdfNativeTokenizer* tokenizer, PdfContext* pdfContext, SkCanvas* canvas) : PdfTokenLooper(parent, tokenizer, pdfContext, canvas) {} |