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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.h

Issue 23020003: pdfviewer: debug code for drawText (show magenta background for text, to show text even when we fai… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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
Index: experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.h
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.h (revision 10712)
+++ experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.h (working copy)
@@ -73,16 +73,16 @@
// this would allow us not to do any garbage collection while we parse or draw a pdf, and defere it
// while the user is looking at the image
-class SkPdfObject;
+class SkPdfNativeObject;
class SkPdfAllocator {
#define BUFFER_SIZE 1024
- SkTDArray<SkPdfObject*> fHistory;
+ SkTDArray<SkPdfNativeObject*> fHistory;
SkTDArray<void*> fHandles;
- SkPdfObject* fCurrent;
+ SkPdfNativeObject* fCurrent;
int fCurrentUsed;
- SkPdfObject* allocBlock();
+ SkPdfNativeObject* allocBlock();
size_t fSizeInBytes;
public:
@@ -94,7 +94,7 @@
~SkPdfAllocator();
- SkPdfObject* allocObject();
+ SkPdfNativeObject* allocObject();
// TODO(edisonn): free this memory in destructor, track the usage?
void* alloc(size_t bytes) {
@@ -109,8 +109,8 @@
}
};
-class SkNativeParsedPDF;
-const unsigned char* nextObject(int level, const unsigned char* start, const unsigned char* end, SkPdfObject* token, SkPdfAllocator* allocator, SkNativeParsedPDF* doc);
+class SkPdfNativeDoc;
+const unsigned char* nextObject(int level, const unsigned char* start, const unsigned char* end, SkPdfNativeObject* token, SkPdfAllocator* allocator, SkPdfNativeDoc* doc);
enum SkPdfTokenType {
kKeyword_TokenType,
@@ -120,7 +120,7 @@
struct PdfToken {
const char* fKeyword;
size_t fKeywordLength;
- SkPdfObject* fObject;
+ SkPdfNativeObject* fObject;
SkPdfTokenType fType;
PdfToken() : fKeyword(NULL), fKeywordLength(0), fObject(NULL) {}
@@ -128,8 +128,8 @@
class SkPdfNativeTokenizer {
public:
- SkPdfNativeTokenizer(SkPdfObject* objWithStream, const SkPdfMapper* mapper, SkPdfAllocator* allocator, SkNativeParsedPDF* doc);
- SkPdfNativeTokenizer(const unsigned char* buffer, int len, const SkPdfMapper* mapper, SkPdfAllocator* allocator, SkNativeParsedPDF* doc);
+ SkPdfNativeTokenizer(SkPdfNativeObject* objWithStream, const SkPdfMapper* mapper, SkPdfAllocator* allocator, SkPdfNativeDoc* doc);
+ SkPdfNativeTokenizer(const unsigned char* buffer, int len, const SkPdfMapper* mapper, SkPdfAllocator* allocator, SkPdfNativeDoc* doc);
virtual ~SkPdfNativeTokenizer();
@@ -139,7 +139,7 @@
SkPdfImageDictionary* readInlineImage();
private:
- SkNativeParsedPDF* fDoc;
+ SkPdfNativeDoc* fDoc;
const SkPdfMapper* fMapper;
SkPdfAllocator* fAllocator;

Powered by Google App Engine
This is Rietveld 408576698