aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp
Commit message (Collapse)AuthorAge
* Remove experimental/PdfViewerGravatar halcanary2015-08-04
| | | | | | | | Motivation: maintaining this code doesn't seem worth the time, since no one seems to be using it. If someone wants to use it in the future, just revert this CL. Review URL: https://codereview.chromium.org/1266093003
* fix last warnings on w64 and turn on w.a.e.Gravatar bsalomon2014-12-15
| | | | Review URL: https://codereview.chromium.org/801413002
* Separate and update PDF_DIFF_TRACE_IN_PNGGravatar scroggo@google.com2013-12-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move its functionality out of readToken() and into its own class. Callers of the previous readToken() now call SkPdfNativeTokenizer::readToken(), which in turn calls a function for writing the diff to a file, if the caller requests it and PDF_TRACE_DIFF_IN_PNG is defined. Do not attempt to draw a diff for compatibility sections, which we do not draw. Use SkString to handle string manipulation. Hide globals only used by PDF_TRACE_DIFF_IN_PNG behind that flag. Remove hasVisualEffects, which always returns true. Rename gLastOpKeyword to gOpCounter for clarity. In SkPdfNativeTokenizer, set fEmpty to true when the entire stream has been read. Use SkBitmap::copyTo instead of manually copying an SkBitmap. Builds on https://codereview.chromium.org/79933003/ R=mtklein@google.com Review URL: https://codereview.chromium.org/80463005 git-svn-id: http://skia.googlecode.com/svn/trunk@12436 2bbb7eff-a529-9590-31e7-b0007b416f81
* code cleanupGravatar edisonn@google.com2013-10-09
| | | | | | Review URL: https://codereview.chromium.org/26613006 git-svn-id: http://skia.googlecode.com/svn/trunk@11687 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove tracking code, as it polutes the code readability. Should be added ↵Gravatar edisonn@google.com2013-10-09
| | | | | | | | back, in a less eficient way, by registering streams instead, so we don't have to pass arround the streams, and the code will be cleaner. Review URL: https://codereview.chromium.org/26700002 git-svn-id: http://skia.googlecode.com/svn/trunk@11671 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: do not submit, uploaded for backup, and will be done actually ↵Gravatar edisonn@google.com2013-09-13
| | | | | | | | after I refactor the params for functions, to put the char* params in a structure: report errors and warnings in pdf, infrastructure Review URL: https://codereview.chromium.org/23902018 git-svn-id: http://skia.googlecode.com/svn/trunk@11262 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: (part 1) store the offset of the location of object in ↵Gravatar edisonn@google.com2013-09-05
| | | | | | | | file/stream. In order to use the feature, enable the macro defined in SkPdfConfig.h Review URL: https://codereview.chromium.org/23456022 git-svn-id: http://skia.googlecode.com/svn/trunk@11117 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: fix break, include the right header.Gravatar edisonn@google.com2013-09-04
| | | | | | Review URL: https://codereview.chromium.org/23493018 git-svn-id: http://skia.googlecode.com/svn/trunk@11083 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: code cleanup - add licence on files, make replace __DEFINE__foo ↵Gravatar edisonn@google.com2013-08-21
| | | | | | | | with foo_DEFINED to match skia project Review URL: https://codereview.chromium.org/23361009 git-svn-id: http://skia.googlecode.com/svn/trunk@10854 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: make pdfviewer compile on macGravatar edisonn@google.com2013-08-14
| | | | | | Review URL: https://codereview.chromium.org/23163007 git-svn-id: http://skia.googlecode.com/svn/trunk@10721 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: 1) debug code for drawText (show magenta background for text, to ↵Gravatar edisonn@google.com2013-08-14
| | | | | | | | show text even when we fail to load/show it), 2) some cleanup: refactor and rename classes and files Review URL: https://codereview.chromium.org/23020003 git-svn-id: http://skia.googlecode.com/svn/trunk@10716 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: remove debug tracesGravatar edisonn@google.com2013-08-05
| | | | | | Review URL: https://codereview.chromium.org/22284004 git-svn-id: http://skia.googlecode.com/svn/trunk@10551 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: debug code for crashGravatar edisonn@google.com2013-08-05
| | | | | | Review URL: https://codereview.chromium.org/22269002 git-svn-id: http://skia.googlecode.com/svn/trunk@10548 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: add indexed rbg image support, enhanche caching(setData) for ↵Gravatar edisonn@google.com2013-08-05
| | | | | | | | SkPdfObject Review URL: https://codereview.chromium.org/21738005 git-svn-id: http://skia.googlecode.com/svn/trunk@10534 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: implementation of one type of pattern - simple tile patern, ↵Gravatar edisonn@google.com2013-08-02
| | | | | | | | colored, with xstep and ystep positive. Review URL: https://codereview.chromium.org/21919003 git-svn-id: http://skia.googlecode.com/svn/trunk@10523 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: transparency groups - implementation of non-isolated and ↵Gravatar edisonn@google.com2013-07-31
| | | | | | | | non-knockout flags Review URL: https://codereview.chromium.org/21288002 git-svn-id: http://skia.googlecode.com/svn/trunk@10467 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: load files with missing xref (we need in order to help with ↵Gravatar edisonn@google.com2013-07-29
| | | | | | | | testing, as most good pdfx in the whild miss the xref). add period as a valid character to start a real value. Review URL: https://codereview.chromium.org/21096006 git-svn-id: http://skia.googlecode.com/svn/trunk@10423 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: more plumming for soft masks, blend modes and transparency groupsGravatar edisonn@google.com2013-07-29
| | | | | | Review URL: https://codereview.chromium.org/21125002 git-svn-id: http://skia.googlecode.com/svn/trunk@10419 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: limit the characters we support in ToUnicode, to 0xffffGravatar edisonn@google.com2013-07-25
| | | | | | Review URL: https://codereview.chromium.org/20538002 git-svn-id: http://skia.googlecode.com/svn/trunk@10377 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: more simple fixed to prevent crashesGravatar edisonn@google.com2013-07-23
| | | | | | Review URL: https://codereview.chromium.org/19625008 git-svn-id: http://skia.googlecode.com/svn/trunk@10294 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: don't crash if the xref is corrupted.Gravatar edisonn@google.com2013-07-23
| | | | | | Review URL: https://codereview.chromium.org/20004007 git-svn-id: http://skia.googlecode.com/svn/trunk@10293 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: improve memory usage, improve parse time (by 30-50%) and don't ↵Gravatar edisonn@google.com2013-07-23
| | | | | | | | allocate extra buffers (more to do, but low priority now), and put the page specific memory in an allocator. Review URL: https://codereview.chromium.org/19793011 git-svn-id: http://skia.googlecode.com/svn/trunk@10282 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: native inline images supportGravatar edisonn@google.com2013-07-15
| | | | | | Review URL: https://codereview.chromium.org/19243003 git-svn-id: http://skia.googlecode.com/svn/trunk@10087 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: measure mem usage, command line flags library.Gravatar edisonn@google.com2013-07-11
| | | | | | Review URL: https://codereview.chromium.org/18562010 git-svn-id: http://skia.googlecode.com/svn/trunk@9996 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-07-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9992 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: ignore more bad stauff in pdfsGravatar edisonn@google.com2013-07-10
| | | | | | Review URL: https://codereview.chromium.org/18112023 git-svn-id: http://skia.googlecode.com/svn/trunk@9990 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: more load references dinamically plummingGravatar edisonn@google.com2013-07-10
| | | | | | Review URL: https://codereview.chromium.org/18536014 git-svn-id: http://skia.googlecode.com/svn/trunk@9988 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdf viewer: refactor, add -w parameter to pdfviewer, add -n to remove ↵Gravatar edisonn@google.com2013-07-10
| | | | | | | | extenassion page when there is a single page (so skdiff can be run easily) and fix a bug (SkPdfobject should not reset on destruct) Review URL: https://codereview.chromium.org/18435007 git-svn-id: http://skia.googlecode.com/svn/trunk@9983 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: remove assertGravatar edisonn@google.com2013-07-10
| | | | | | Review URL: https://codereview.chromium.org/18518006 git-svn-id: http://skia.googlecode.com/svn/trunk@9971 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdfviewer: fix warnings on macGravatar edisonn@google.com2013-07-10
| | | | | | Review URL: https://codereview.chromium.org/18293014 git-svn-id: http://skia.googlecode.com/svn/trunk@9970 2bbb7eff-a529-9590-31e7-b0007b416f81
* pdf viewer: fix a few warnings, and enable warning as errorsGravatar edisonn@google.com2013-07-10
| | | | | | Review URL: https://codereview.chromium.org/18293012 git-svn-id: http://skia.googlecode.com/svn/trunk@9966 2bbb7eff-a529-9590-31e7-b0007b416f81
* Native PDF parser implementation - don't try it on pdfs that are not ↵Gravatar edisonn@google.com2013-07-10
| | | | | | | | generated by skia, Crome Print Preview or Chrome Save As Pdf - it will crash as mising xref, pdfs with updates, and other features are not supported yer. Review URL: https://codereview.chromium.org/18323019 git-svn-id: http://skia.googlecode.com/svn/trunk@9962 2bbb7eff-a529-9590-31e7-b0007b416f81
* Sanitizing source files in Housekeeper-NightlyGravatar skia.committer@gmail.com2013-07-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@9882 2bbb7eff-a529-9590-31e7-b0007b416f81
* isolate podofo to prepare for native parser, autogenerate PDF API during buildGravatar edisonn@google.com2013-07-02
Review URL: https://codereview.chromium.org/18042005 git-svn-id: http://skia.googlecode.com/svn/trunk@9879 2bbb7eff-a529-9590-31e7-b0007b416f81