skia2/experimental
scroggo@google.com 5092adc546 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
2013-12-02 20:22:31 +00:00
..
AndroidPathRenderer Replace uses of GrAssert by SkASSERT. 2013-08-17 00:02:59 +00:00
DrawingBoard remove SkFloatToScalar macro 2013-11-25 19:44:07 +00:00
FileReaderApp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
Intersection path ops work in progress 2013-04-18 15:58:21 +00:00
iOSSampleApp Replace SkTScopedPtr with SkAutoTDelete in Skia. 2013-08-29 22:14:04 +00:00
LightSymbolsUtil Sanitizing source files in Skia_Periodic_House_Keeping 2012-12-22 02:02:33 +00:00
Networking Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
PdfViewer Separate and update PDF_DIFF_TRACE_IN_PNG 2013-12-02 20:22:31 +00:00
pixman Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-17 02:01:13 +00:00
SimpleCocoaApp Revert "If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get better performance." 2013-10-22 16:54:15 +00:00
SimpleiOSApp Replace SkTScopedPtr with SkAutoTDelete in Skia. 2013-08-29 22:14:04 +00:00
SkiaExamples basically a typo 2013-10-10 02:53:30 +00:00
StrokePathRenderer My clang now doesn't complain about !"foo". 2013-08-22 15:37:26 +00:00
SkSetPoly3To3_A.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkSetPoly3To3_D.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkSetPoly3To3.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00