skia2/experimental
scroggo@google.com 248647cebb Restructuring of PdfViewer code.
The only change in behavior is that SkPdfAllocator on SkPdfContext is
no longer allocated on the heap.

In general, I have just moved code.

SkPdfContext:
Inherit from SkNoncopyable.
Make SkPdfContext directly own fTmpPageAllocator. fTmpPageAllocator is
created when SkPdfContext is, and destroyed at the same time as well,
so there is no reason for the extra allocation.
Add the function parseStream. This eliminates code duplication, and
allows making fTmpPageAllocator private.
Move PdfMainLooper into the implementation file, since it is now only
used by parseStream.
Move SkTDictWithDefaultConstructor and render stats info here, in
support of PdfMainLooper.

SkPdfTokenLooper:
Rename PdfTokenLooper to SkPdfTokenLooper.
Move readToken here, unchanged.
Remove tokenizer(), which is unused.

SkPdfNativeDoc:
Remove tokenizerOfPage and tokenizerOfBuffer, which are unused.

SkPdfOps:
Move gPdfOps and PdfOperatorRenderer into a header file (hidden for
now), so they can be accessed by both SkPdfRenderer.cpp and
SkPdfContext.cpp.

SkPdfRenderer:
Harvest things into other files:
PdfMainLooper (and the code that calls it) -> SkPdfContext.
readToken -> SkPdfTokenLooper.

R=mtklein@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@12435 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-02 20:18:09 +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 Restructuring of PdfViewer code. 2013-12-02 20:18:09 +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