|
[PDF] Make stream compression optional on a per device basis.
There are a lot of small pieces to make this change work:
- SkPDFDocument (and SkPDFCatalog) take flags to disable compression (and font embedding - not implemented yet, can disable font subsetting for now).
- SkPDFStream now defers compression until the size/emit step.
- Classes that *had* a stream (because they didn't know the stream size at construction time) now *are* streams to make the substitution work correctly.
- The SkPDFShader implementation got pulled apart into two classes, one that is a SkPDFDict, and one that is a SkPDFStream (making the common ancestor SkPDFObject).
- Added helper methods in SkPDFObject for children that have simple resource lists.
- Added an iterator to SkPDFDict so that a substitute SkPDFStream can get a copy of the stream dictionary.
- Change SkPDFDocument to have a pointer to an SkPDFCatalog to remove a new circular header reference.
Committed: http://code.google.com/p/skia/source/detail?r=1911
Total comments: 28
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+483 lines, -355 lines) |
Patch |
 |
M |
include/pdf/SkPDFCatalog.h
|
View
|
1
2
|
4 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFDevice.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFDocument.h
|
View
|
1
2
|
3 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFFormXObject.h
|
View
|
|
2 chunks |
+1 line, -19 lines |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFImage.h
|
View
|
|
3 chunks |
+1 line, -19 lines |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFShader.h
|
View
|
1
2
3
|
2 chunks |
+10 lines, -48 lines |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFStream.h
|
View
|
1
2
3
|
2 chunks |
+31 lines, -5 lines |
0 comments
|
Download
|
 |
M |
include/pdf/SkPDFTypes.h
|
View
|
1
2
3
|
3 chunks |
+32 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/core/SkFlate.cpp
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFCatalog.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFDevice.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFDocument.cpp
|
View
|
1
2
3
|
6 chunks |
+43 lines, -31 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFFont.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFFormXObject.cpp
|
View
|
|
2 chunks |
+2 lines, -30 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFGraphicState.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFImage.cpp
|
View
|
|
2 chunks |
+2 lines, -34 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFShader.cpp
|
View
|
1
2
3
|
7 chunks |
+115 lines, -73 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFStream.cpp
|
View
|
1
2
3
|
1 chunk |
+83 lines, -23 lines |
0 comments
|
Download
|
 |
M |
src/pdf/SkPDFTypes.cpp
|
View
|
1
2
3
|
3 chunks |
+41 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/PDFPrimitivesTest.cpp
|
View
|
1
|
6 chunks |
+97 lines, -44 lines |
0 comments
|
Download
|
Total messages: 10
|