History log of /external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6c22573edb234ad14df947278cfed010669a39a7 10-Jun-2014 reed <reed@chromium.org> hide SkBitmap::setConfig

patch from issue 325733002

TBR=scroggo

Author: reed@chromium.org

Review URL: https://codereview.chromium.org/322963002
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
5092adc5461a7c5cb3e1fad01be2174c3f4a0c46 02-Dec-2013 scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Separate and update PDF_DIFF_TRACE_IN_PNG

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
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
909228992c1671ea7451d1c6bc588a8ec991841e 14-Nov-2013 scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Pdfviewer refactoring.

Mostly superficial changes, to help me make sure I understand the
code while making modifications.

SkPdfRenderer:
First class I'm modifying. Move it into include/ and src/ directories.
Inherit from SkNoncopyable.
Replace load() with factory function which returns NULL if the load
fails.
Remove unload() and loaded(), which no longer make sense, since the
factory will return NULL on a failure to load, and unload() happens
on destruction.
Use a const char* for loading a PDF, following the convention of
SkStream::NewFromFile.
Remove unnecessary call to sqrt in SkPDFNativeRenderToBitmap.
Also in SkPDFNativeRenderToBitmap, use an appropriate SkScalar macro
to convert to an integer.
Use this-> when calling member functions.

pdf_viewer_main.cpp:
Call the new interface for SkPdfRenderer.

gyp files:
Refer to the new location of SkPdfRenderer.

R=edisonn@google.com

Review URL: https://codereview.chromium.org/59493011

git-svn-id: http://skia.googlecode.com/svn/trunk@12296 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
c6e1e9a9ccd6f312ac203a3552cc8e4202b1ba7d 14-Nov-2013 scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Fix warnings and Win only error in pdf_viewer.

git-svn-id: http://skia.googlecode.com/svn/trunk@12292 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
221253861d67cdb86efa3b490c9330acb13b2ffa 14-Nov-2013 scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Include SkBitmapDevice for pdf_viewer.

git-svn-id: http://skia.googlecode.com/svn/trunk@12289 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
04068b13e5ec0c0aa2ab0fe82990ec8146c33243 12-Nov-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: remove sqrt from the formula computing the scale (DPI is dots per inch, not dots per square inch)

Review URL: https://codereview.chromium.org/70793003

git-svn-id: http://skia.googlecode.com/svn/trunk@12258 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
5c7be9584c1dfde49cdbf92d578f5c764b1cdca4 12-Nov-2013 scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Use SkPathJoin and SkBasename in Pdfviewer.

Remove redundant code.

R=edisonn@google.com

Review URL: https://codereview.chromium.org/68263003

git-svn-id: http://skia.googlecode.com/svn/trunk@12240 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
e50d9a1fcd9c4298079ff54f9a40c9708d30f8c6 10-Oct-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> mode code cleanup (100c / l, comments)

Review URL: https://codereview.chromium.org/26912005

git-svn-id: http://skia.googlecode.com/svn/trunk@11716 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
598cf5d3cfc428108cf21ab45d73a995d7e5c2a8 09-Oct-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> remove tracking code, as it polutes the code readability. Should be added 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
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
1f2f338e23789f3eef168dcbd8171a28820ba6c1 29-Aug-2013 robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Split SkDevice into SkBaseDevice and SkBitmapDevice

https://codereview.chromium.org/22978012/



git-svn-id: http://skia.googlecode.com/svn/trunk@10995 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
cf2cfa174ca878c144e17e9fc60ca8e9070d7ded 21-Aug-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: code cleanup - add licence on files, make replace __DEFINE__foo 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
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
9b051a375ba6d6b61cea98f35834cd032aaa5347 20-Aug-2013 robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Revert r10830 (Split SkDevice out of SkRasterDevice) until we can get Chromium ready.



git-svn-id: http://skia.googlecode.com/svn/trunk@10835 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
3055b700189afdd02486ed8f2279cea1d8897243 20-Aug-2013 robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Split SkDevice out of SkBitmapDevice

https://codereview.chromium.org/22978012/



git-svn-id: http://skia.googlecode.com/svn/trunk@10830 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
33f11b6fcdb7dfce27f953803be40fbacedc7450 14-Aug-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: make pdfviewer compile on mac

Review URL: https://codereview.chromium.org/23163007

git-svn-id: http://skia.googlecode.com/svn/trunk@10721 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
768bc6a920427d749fbd5060f33edc866613815c 08-Aug-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: add ability to run on gpu

Review URL: https://codereview.chromium.org/22684002

git-svn-id: http://skia.googlecode.com/svn/trunk@10638 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
2273f9b45fb78b0cc7df81f96f74b0c3c0e6cc37 06-Aug-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: load image pain settings (like transparency), pass the page number, report failure if at least one render fails, and check that xref section starts with xref keyword.

Review URL: https://codereview.chromium.org/22465006

git-svn-id: http://skia.googlecode.com/svn/trunk@10588 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
5149bd954b301abb3cb1e6332c5c84a8d3b99681 05-Aug-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: set backdround to transparent, and add an app to chop transparent content in png files.

Review URL: https://codereview.chromium.org/21981008

git-svn-id: http://skia.googlecode.com/svn/trunk@10538 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
641cce90c99f17e7c4d3d6407c3c4bbf591c5a3f 30-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: fix condition for element in array, reset back the default color to white, and verify type before value in PDF API mapper

Review URL: https://codereview.chromium.org/21017004

git-svn-id: http://skia.googlecode.com/svn/trunk@10427 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
1acab362fdde40948e47438edcc4326e04b9b52b 26-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: limit the characters we support in ToUnicode, to 0xffff

Review URL: https://codereview.chromium.org/20538002

git-svn-id: http://skia.googlecode.com/svn/trunk@10377 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
ac4bedcb1098416e46f1907b03878787df6342ce 25-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: set the default background to transparent (to match render_picture default), and fix a bug a with corrupt diffs

Review URL: https://codereview.chromium.org/20526002

git-svn-id: http://skia.googlecode.com/svn/trunk@10376 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
147adb10f7f80ae721879e08474fd575e719487c 24-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: remove dependency on picture_utils. add utility function to render SkStream into bitmap.

Review URL: https://codereview.chromium.org/20087003

git-svn-id: http://skia.googlecode.com/svn/trunk@10314 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
2ccc3afa474f9485c39c2e863252ddaa3f35724b 23-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: improve memory usage, improve parse time (by 30-50%) and don't 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
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
ac03d91ee03599eab946a8ad25e33f9fc5f3166e 22-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: All NulCanvas (does not draw operations), TrackDevice (trackes what pixels have been changed)

Review URL: https://codereview.chromium.org/19793006

git-svn-id: http://skia.googlecode.com/svn/trunk@10236 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
6a9d436260582b9453de37877b6e00c2dd24f33a 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: add option to run the load or render multiple times, --benchLoad, --benchRender

Review URL: https://codereview.chromium.org/18093008

git-svn-id: http://skia.googlecode.com/svn/trunk@10013 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
444e25a66b6a1547fa0903d0cf075a0885a76bb7 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> add ability to specify the DPI at which to render the page

Review URL: https://codereview.chromium.org/19000004

git-svn-id: http://skia.googlecode.com/svn/trunk@10009 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
1310238d828c9fc9285875a7cc2185d5b53faa4b 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: render in the same way regadless if we write the result to a file or not.

Review URL: https://codereview.chromium.org/18503013

git-svn-id: http://skia.googlecode.com/svn/trunk@10008 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
15b11182036ba32a732a68982f5eca0b325e0ebe 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: some code cleanup in renderer

Review URL: https://codereview.chromium.org/18093005

git-svn-id: http://skia.googlecode.com/svn/trunk@10006 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
7b328fddf94eea5f05ffa36de02d7d9922f504da 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: add --pages arg: render a certain page (all, all in desceding order, firsl, last and by page number)

Review URL: https://codereview.chromium.org/18584010

git-svn-id: http://skia.googlecode.com/svn/trunk@9999 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
a5aaa7998fc18489701660f781d7daa33ffc6f6e 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: measure mem usage, command line flags library.

Review URL: https://codereview.chromium.org/18562010

git-svn-id: http://skia.googlecode.com/svn/trunk@9996 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
cdad30b35ac0c0b2fa0e1105021f880b49b0ac38 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdfviewer: fix bug, page -1 means render page 0 with no page extension

Review URL: https://codereview.chromium.org/18660009

git-svn-id: http://skia.googlecode.com/svn/trunk@9985 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
222382b30a176db9d9044d9df1ae14e0fbe27181 11-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdf viewer: refactor, add -w parameter to pdfviewer, add -n to remove 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
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
596d2e26cdaa80f8721ba6b6eedf09227524f5d1 10-Jul-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> pdf viewer: fix a few warnings, and enable warning as errors

Review URL: https://codereview.chromium.org/18293012

git-svn-id: http://skia.googlecode.com/svn/trunk@9966 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
131d4ee0eabf7b7ddb5ccf0744edb4b449226773 26-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> refactoring for pdf viewer lib

Review URL: https://codereview.chromium.org/17856004

git-svn-id: http://skia.googlecode.com/svn/trunk@9773 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
b857a0c7de8cffb09281fa59591649fb1db6ad0a 25-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Basic support for Type3 Fonts in Pdf + various refactorings

Review URL: https://codereview.chromium.org/17748002

git-svn-id: http://skia.googlecode.com/svn/trunk@9757 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
1be794fad6bef2b1ab98158bd3ad68dc4a52dbf6 21-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> add missing font.* files, map podofo to SkPdfObject for SkPdfArray::operator[]

Review URL: https://codereview.chromium.org/17063014

git-svn-id: http://skia.googlecode.com/svn/trunk@9735 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
ff27844d15da7e691d1b4c0adc57af64e108d9fa 21-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> load font manually, for now Type0

Review URL: https://codereview.chromium.org/17294008

git-svn-id: http://skia.googlecode.com/svn/trunk@9734 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
afe5e9e417b41c3f5a074d590ce23e3de3fd4dbd 19-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Deal with ca and CA transparency operators in pdf. add comments to generated classes.

Review URL: https://codereview.chromium.org/16975013

git-svn-id: http://skia.googlecode.com/svn/trunk@9685 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
59543d34df80d02754a540e6c177609e8e123a8d 19-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Continue to contain podofo, shorter enums

Review URL: https://codereview.chromium.org/17395005

git-svn-id: http://skia.googlecode.com/svn/trunk@9670 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
1277cf05cc7de138ee81472aedded14bc5db6418 18-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Pdfviewer: generate isAFoo() and getAsFoo() api for fields that can have multiple types.

Review URL: https://codereview.chromium.org/16968007

git-svn-id: http://skia.googlecode.com/svn/trunk@9646 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
68d15c81e5d9fc9ef7b8cd1ead8bcfc6b33114ab 17-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> few steps in the direction of to encapsulating podofo, so the client is not aware podofo is used.

Review URL: https://codereview.chromium.org/17286007

git-svn-id: http://skia.googlecode.com/svn/trunk@9643 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
a2fab9d35c28a5abdd938d91f9d464b6f7a96ab0 14-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Object model generated from pdf spec 1.4, draft code

Review URL: https://codereview.chromium.org/17095004

git-svn-id: http://skia.googlecode.com/svn/trunk@9625 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
e4d11becb5027e8e63d9d5f9d2e84cfbc2772136 12-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> remove some old code

Review URL: https://codereview.chromium.org/16845002

git-svn-id: http://skia.googlecode.com/svn/trunk@9547 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
af3daa01f6b0d82b11c476cc26bcfbbc4735739b 12-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> Code generator for dinamic generation of podofo wrappers

Review URL: https://codereview.chromium.org/16838002

git-svn-id: http://skia.googlecode.com/svn/trunk@9544 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp
01cd4d5c8ff9c6b251021ce07936c71f9c20054c 10-Jun-2013 edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> simple podofo and skia based pdf viewer

Review URL: https://codereview.chromium.org/16295031

git-svn-id: http://skia.googlecode.com/svn/trunk@9494 2bbb7eff-a529-9590-31e7-b0007b416f81
/external/skia/experimental/PdfViewer/pdf_viewer_main.cpp