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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp

Issue 21049009: pdfviewer: add doPage function, cet stream from Contents (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months 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/SkNativeParsedPDF.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (revision 10427)
+++ experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp (working copy)
@@ -403,7 +403,14 @@
return fPages.count();
}
+SkPdfPageObjectDictionary* SkNativeParsedPDF::page(int page) {
+ SkASSERT(page >= 0 && page < fPages.count());
+ return fPages[page];
+}
+
+
SkPdfResourceDictionary* SkNativeParsedPDF::pageResources(int page) {
+ SkASSERT(page >= 0 && page < fPages.count());
return fPages[page]->Resources(this);
}
@@ -502,8 +509,6 @@
// TODO(edisonn): generation/updates not supported now
//int gen = ref->referenceGeneration();
- SkASSERT(!(id < 0 || id > fObjects.count()));
-
// TODO(edisonn): verify id and gen expected
if (id < 0 || id >= fObjects.count()) {
// TODO(edisonn): report error/warning
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698