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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp

Issue 21288002: pdfviewer: (in progress, uploaded for backup): transparency groups - isolated and knockout flags (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 #include "SkPdfNativeTokenizer.h" 2 #include "SkPdfNativeTokenizer.h"
3 #include "SkPdfObject.h" 3 #include "SkPdfObject.h"
4 #include "SkPdfConfig.h" 4 #include "SkPdfConfig.h"
5 5
6 #include "SkPdfStreamCommonDictionary_autogen.h" 6 #include "SkPdfStreamCommonDictionary_autogen.h"
7 #include "SkPdfImageDictionary_autogen.h" 7 #include "SkPdfImageDictionary_autogen.h"
8 8
9 // TODO(edisonn): perf!!! 9 // TODO(edisonn): perf!!!
10 // there could be 0s between start and end! but not in the needle. 10 // there could be 0s between start and end! but not in the needle.
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 if (tokenLen == 4 && start[0] == 'n' && start[1] == 'u' && start[2] == 'l' & & start[3] == 'l') { 848 if (tokenLen == 4 && start[0] == 'n' && start[1] == 'u' && start[2] == 'l' & & start[3] == 'l') {
849 SkPdfObject::makeNull(token); 849 SkPdfObject::makeNull(token);
850 return current; 850 return current;
851 } 851 }
852 852
853 if (tokenLen == 4 && start[0] == 't' && start[1] == 'r' && start[2] == 'u' & & start[3] == 'e') { 853 if (tokenLen == 4 && start[0] == 't' && start[1] == 'r' && start[2] == 'u' & & start[3] == 'e') {
854 SkPdfObject::makeBoolean(true, token); 854 SkPdfObject::makeBoolean(true, token);
855 return current; 855 return current;
856 } 856 }
857 857
858 if (tokenLen == 5 && start[0] == 'f' && start[1] == 'a' && start[2] == 'l' & & start[3] == 's' && start[3] == 'e') { 858 if (tokenLen == 5 && start[0] == 'f' && start[1] == 'a' && start[2] == 'l' & & start[3] == 's' && start[4] == 'e') {
859 SkPdfObject::makeBoolean(false, token); 859 SkPdfObject::makeBoolean(false, token);
860 return current; 860 return current;
861 } 861 }
862 862
863 if (isPdfNumeric(*start)) { 863 if (isPdfNumeric(*start)) {
864 SkPdfObject::makeNumeric(start, current, token); 864 SkPdfObject::makeNumeric(start, current, token);
865 } else { 865 } else {
866 SkPdfObject::makeKeyword(start, current, token); 866 SkPdfObject::makeKeyword(start, current, token);
867 } 867 }
868 return current; 868 return current;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 SkPdfObject* obj = fAllocator->allocObject(); 1084 SkPdfObject* obj = fAllocator->allocObject();
1085 fUncompressedStream = nextObject(0, fUncompressedStream, fUncompress edStreamEnd, obj, fAllocator, fDoc); 1085 fUncompressedStream = nextObject(0, fUncompressedStream, fUncompress edStreamEnd, obj, fAllocator, fDoc);
1086 // TODO(edisonn): perf maybe we should not expand abreviation like t his 1086 // TODO(edisonn): perf maybe we should not expand abreviation like t his
1087 inlineImage->set(inlineImageKeyAbbreviationExpand(key), 1087 inlineImage->set(inlineImageKeyAbbreviationExpand(key),
1088 inlineImageValueAbbreviationExpand(obj)); 1088 inlineImageValueAbbreviationExpand(obj));
1089 } 1089 }
1090 } 1090 }
1091 // TODO(edisonn): report end of data with inline image without an EI 1091 // TODO(edisonn): report end of data with inline image without an EI
1092 return inlineImage; 1092 return inlineImage;
1093 } 1093 }
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfRenderer.cpp ('k') | experimental/PdfViewer/pdfparser/native/SkPdfObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698