Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Issue 1049753002: SkPDF: Factor SkPDFCatalog into SkPDFObjNumMap and SkPDFSubstituteMap (Closed)

Created:
5 years, 8 months ago by hal.canary
Modified:
5 years, 8 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: Factor SkPDFCatalog into SkPDFObjNumMap and SkPDFSubstituteMap Motivation: Keep separate features separate. Also, future linearization work will need to have several objNumMap objects share a substituteMap. Also "catalog" has a specific meaning in PDF. This catalog did not map to that catalog. - Modify SkPDFObject::emitObject and SkPDFObject::addResources interface to requiore SkPDFObjNumMap and SkPDFSubstituteMap. - SkPDFObjNumMap const in SkPDFObject::emitObject. - Remove SkPDFCatalog.cpp/.h - Modify SkDocument_PDF.cpp to use new functions - Fold in SkPDFStream::populate - Fold in SkPDFBitmap::emitDict - Move SkPDFObjNumMap and SkPDFSubstituteMap to SkPDFTypes.h - Note (via assert) that SkPDFArray & SkPDFDict don't need to check substitutes. - Remove extra space from SkPDFDict serialization. - SkPDFBitmap SkPDFType0Font SkPDFGraphicState SkPDFStream updated to new interface. - PDFPrimitivesTest updated for new interface. BUG=skia:3585 Committed: https://skia.googlesource.com/skia/+/37c46cad21632cfc1411b08d73af37a1fffe2944

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : full #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -275 lines) Patch
M gyp/pdf.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M src/doc/SkDocument_PDF.cpp View 1 2 8 chunks +17 lines, -16 lines 0 comments Download
M src/pdf/SkPDFBitmap.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M src/pdf/SkPDFBitmap.cpp View 1 2 6 chunks +38 lines, -41 lines 0 comments Download
D src/pdf/SkPDFCatalog.h View 1 chunk +0 lines, -56 lines 0 comments Download
D src/pdf/SkPDFCatalog.cpp View 1 chunk +0 lines, -44 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M src/pdf/SkPDFFontImpl.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/pdf/SkPDFFormXObject.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFormXObject.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M src/pdf/SkPDFStream.h View 1 2 3 chunks +4 lines, -6 lines 0 comments Download
M src/pdf/SkPDFStream.cpp View 1 2 3 chunks +20 lines, -24 lines 2 comments Download
M src/pdf/SkPDFTypes.h View 1 2 11 chunks +89 lines, -16 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 1 2 11 chunks +87 lines, -30 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 10 chunks +31 lines, -26 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049753002/1
5 years, 8 months ago (2015-03-31 15:16:07 UTC) #2
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-03-31 15:16:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049753002/1
5 years, 8 months ago (2015-03-31 15:18:05 UTC) #6
hal.canary
ptal
5 years, 8 months ago (2015-03-31 15:18:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049753002/20001
5 years, 8 months ago (2015-03-31 15:33:09 UTC) #10
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 8 months ago (2015-03-31 15:33:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049753002/40001
5 years, 8 months ago (2015-03-31 18:56:32 UTC) #14
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-03-31 19:05:01 UTC) #16
hal.canary
changes made.
5 years, 8 months ago (2015-03-31 19:08:36 UTC) #17
mtklein
lgtm https://codereview.chromium.org/1049753002/diff/40001/src/pdf/SkPDFStream.cpp File src/pdf/SkPDFStream.cpp (right): https://codereview.chromium.org/1049753002/diff/40001/src/pdf/SkPDFStream.cpp#newcode40 src/pdf/SkPDFStream.cpp:40: insertName("Filter", "FlateDecode"); It'd be nice to tack on ...
5 years, 8 months ago (2015-03-31 19:29:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049753002/40001
5 years, 8 months ago (2015-03-31 19:29:53 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/37c46cad21632cfc1411b08d73af37a1fffe2944
5 years, 8 months ago (2015-03-31 19:30:25 UTC) #21
hal.canary
5 years, 8 months ago (2015-03-31 19:32:48 UTC) #22
Message was sent while issue was closed.
Someday I'll touch every line of code in the module.

https://codereview.chromium.org/1049753002/diff/40001/src/pdf/SkPDFStream.cpp
File src/pdf/SkPDFStream.cpp (right):

https://codereview.chromium.org/1049753002/diff/40001/src/pdf/SkPDFStream.cpp...
src/pdf/SkPDFStream.cpp:40: insertName("Filter", "FlateDecode");
On 2015/03/31 19:29:21, mtklein wrote:
> It'd be nice to tack on this-> to these insertFoo calls while we're looking.

will do.

Powered by Google App Engine
This is Rietveld 408576698