skia2/experimental/PdfViewer/pdfparser/native
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
..
pdfapi Sanitizing source files in Housekeeper-Nightly 2013-08-22 07:01:59 +00:00
SkPdfNativeDoc.cpp Restructuring of PdfViewer code. 2013-12-02 20:18:09 +00:00
SkPdfNativeDoc.h Restructuring of PdfViewer code. 2013-12-02 20:18:09 +00:00
SkPdfNativeObject.cpp Changes to SkTDStackNester. 2013-11-20 21:40:57 +00:00
SkPdfNativeObject.h pdfviewer: (more code cleanup): class documentation and comments 2013-10-11 16:17:44 +00:00
SkPdfNativeTokenizer.cpp code cleanup 2013-10-09 20:23:12 +00:00
SkPdfNativeTokenizer.h pdfviewer: (more code cleanup): class documentation and comments 2013-10-11 16:17:44 +00:00