Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: experimental/PdfViewer/src/SkPdfContext.cpp

Issue 100323003: Remove SkPdfNativeDoc::tokenizerOfStream. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/src/SkPdfContext.cpp
diff --git a/experimental/PdfViewer/src/SkPdfContext.cpp b/experimental/PdfViewer/src/SkPdfContext.cpp
index b033e7a7685561b4dc3026034b9ca3ca737373f5..670e6ce48d62c6fc9e1aad3980edd94049f13146 100644
--- a/experimental/PdfViewer/src/SkPdfContext.cpp
+++ b/experimental/PdfViewer/src/SkPdfContext.cpp
@@ -35,15 +35,14 @@ SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc)
}
void SkPdfContext::parseStream(SkPdfNativeObject* stream, SkCanvas* canvas) {
- SkPdfNativeTokenizer* tokenizer = fPdfDoc->tokenizerOfStream(stream, &fTmpPageAllocator);
- if (NULL == tokenizer) {
+ if (NULL == stream) {
// Nothing to parse.
return;
}
- PdfMainLooper looper(tokenizer, this, canvas);
+
+ SkPdfNativeTokenizer tokenizer(stream, &fTmpPageAllocator, fPdfDoc);
+ PdfMainLooper looper(&tokenizer, this, canvas);
looper.loop();
- // FIXME (scroggo): Will restructure to put tokenizer on the stack.
- delete tokenizer;
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698