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

Unified Diff: experimental/PdfViewer/SkPdfBasics.h

Issue 18323019: work on the native parser, in progress, uploaded to have a backup (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/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/SkPdfFont.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/SkPdfBasics.h
===================================================================
--- experimental/PdfViewer/SkPdfBasics.h (revision 9879)
+++ experimental/PdfViewer/SkPdfBasics.h (working copy)
@@ -15,11 +15,12 @@
class SkPdfObject;
class SkPdfResourceDictionary;
-class SkPodofoParsedPDF;
+class SkNativeParsedPDF;
// TODO(edisonn): better class design.
struct SkPdfColorOperator {
- std::string fColorSpace; // TODO(edisonn): use SkString
+ // does not own the char*
+ const char* fColorSpace; // TODO(edisonn): use SkString, or even char*
SkColor fColor;
double fOpacity; // ca or CA
// TODO(edisonn): add here other color space options.
@@ -29,7 +30,7 @@
fColor = color;
}
// TODO(edisonn): double check the default values for all fields.
- SkPdfColorOperator() : fColor(SK_ColorBLACK), fOpacity(1) {}
+ SkPdfColorOperator() : fColorSpace(NULL), fColor(SK_ColorBLACK), fOpacity(1) {}
void applyGraphicsState(SkPaint* paint) {
paint->setColor(SkColorSetA(fColor, fOpacity * 255));
@@ -63,7 +64,7 @@
double fWordSpace;
double fCharSpace;
- const SkPdfResourceDictionary* fResources;
+ SkPdfResourceDictionary* fResources;
SkBitmap fSMask;
@@ -115,12 +116,12 @@
std::stack<SkPdfObject*> fObjectStack;
std::stack<SkPdfGraphicsState> fStateStack;
SkPdfGraphicsState fGraphicsState;
- const SkPodofoParsedPDF* fPdfDoc;
+ SkNativeParsedPDF* fPdfDoc;
SkMatrix fOriginalMatrix;
SkPdfInlineImage fInlineImage;
- PdfContext(const SkPodofoParsedPDF* doc) : fPdfDoc(doc) {}
+ PdfContext(SkNativeParsedPDF* doc) : fPdfDoc(doc) {}
};
« no previous file with comments | « experimental/PdfViewer/PdfReference-okular-1.txt ('k') | experimental/PdfViewer/SkPdfFont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698