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

Unified Diff: experimental/PdfViewer/SkPdfConfig.h

Issue 23902018: pdfviewer: do not submit, uploaded for backup, and will be done actually after I refactor the param… Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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 | « no previous file | experimental/PdfViewer/SkPdfRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfConfig.h
===================================================================
--- experimental/PdfViewer/SkPdfConfig.h (revision 11117)
+++ experimental/PdfViewer/SkPdfConfig.h (working copy)
@@ -8,8 +8,12 @@
#ifndef SkPdfConfig_DEFINED
#define SkPdfConfig_DEFINED
+#include "stddef.h"
+class SkPdfNativeObject;
+
//#define PDF_TRACK_OBJECT_USAGE
//#define PDF_TRACK_STREAM_OFFSETS
+#define PDF_REPORT
//#define PDF_TRACE
//#define PDF_TRACE_READ_TOKEN
//#define PDF_TRACE_DRAWTEXT
@@ -73,5 +77,34 @@
#define STORE_TRACK_PARAMETER_OFFSET_END(obj,offsetEnd)
#endif //PDF_TRACK_STREAM_OFFSETS
+// TODO(edisonn): move it somewhere else?
+struct SkPdfInputStream {
+#ifdef PDF_TRACK_STREAM_OFFSETS
+ // no parent object -> original file to be rendered
+ // no parent file -> stream object
+ // both -> external stream object
+ int fParentFileID;
+ const SkPdfNativeObject* fParentObject;
+ size_t fDelta; // delta in parent stream
+ const unsigned char* fStart;
+#endif // PDF_TRACK_STREAM_OFFSETS
+
+ const unsigned char* fEnd;
+};
+
+struct SkPdfInputStreamLocation {
+ SkPdfInputStream fInputStream;
+ const unsigned char* fNow;
+};
+
+#ifdef PDF_TRACK_STREAM_OFFSETS
+struct SkPdfInputStreamRange {
+ SkPdfInputStream fInputStream;
+ const unsigned char* fRangeStart;
+ const unsigned char* fRangeEnd;
+};
+#endif // PDF_TRACK_STREAM_OFFSETS
+
+
#endif // SkPdfConfig_DEFINED
« no previous file with comments | « no previous file | experimental/PdfViewer/SkPdfRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698