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

Issue 1033543002: SKPDF: refactor pdfcatalog and pdfdocument (Closed)

Created:
5 years, 9 months ago by hal.canary
Modified:
5 years, 9 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: refactor pdfcatalog and pdfdocument SkPDFCatalog: - remove first-page-specific code (no longer needed, never used) (e.g. addObject()). - Make use of SkHashMap for lookups (simplifies code). - inline all small methods - emitXrefTable moved to SkPDFDocument.cpp - no longer store offsets in this data structure (moved to SkPDFDocument.cpp) - setFileOffset gone. - own substitute refs directly. SkPDFDocument::EmitPDF() - All sites that call into SkPDFCatalog modified. - catalog.addObject only called in a single place, after the resouceSet is built - offsets moved to local array. SkPDFPage: - finalizePage no longer deals with SkPDFCatalog or resource sets. - GeneratePageTree no longer deals with SkPDFCatalog SkPDFObjRef - emitObject respects the substitution map Unit Tests: - respect SkPDFCatalog::addObject signature change. SkTHash: - #include SkChecksum for SkGoodHash - Copyright notice added Committed: https://skia.googlesource.com/skia/+/f41061cc8dc717b63efe75d2357a3176f04153ec

Patch Set 1 : 2015-03-23 (Monday) 18:41:58 EDT #

Patch Set 2 : 2015-03-23 (Monday) 19:02:27 EDT #

Total comments: 8

Patch Set 3 : 2015-03-24 (Tuesday) 16:07:27 EDT #

Patch Set 4 : rebase #

Patch Set 5 : 2015-03-25 (Wednesday) 12:10:27 EDT #

Patch Set 6 : 2015-03-25 (Wednesday) 13:23:40 EDT #

Patch Set 7 : 2015-03-25 (Wednesday) 14:17:42 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -299 lines) Patch
M src/pdf/SkPDFCatalog.h View 1 2 1 chunk +10 lines, -65 lines 0 comments Download
M src/pdf/SkPDFCatalog.cpp View 1 2 1 chunk +18 lines, -133 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 1 2 3 4 5 6 5 chunks +32 lines, -70 lines 0 comments Download
M src/pdf/SkPDFPage.h View 1 2 3 4 2 chunks +2 lines, -15 lines 0 comments Download
M src/pdf/SkPDFPage.cpp View 1 2 3 4 4 chunks +1 line, -8 lines 0 comments Download
M src/pdf/SkPDFTypes.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 3 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/1
5 years, 9 months ago (2015-03-23 22:12:22 UTC) #2
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-23 22:12:23 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCE-NoGPU-x86_64-Debug-Trybot/builds/58) Build-Ubuntu-Clang-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, ...
5 years, 9 months ago (2015-03-23 22:19:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/20001
5 years, 9 months ago (2015-03-23 22:30:46 UTC) #8
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-23 22:30:47 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCE-NoGPU-x86_64-Debug-Trybot/builds/60) Test-Ubuntu-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
5 years, 9 months ago (2015-03-23 22:31:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/40001
5 years, 9 months ago (2015-03-23 22:42:40 UTC) #14
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-23 22:42:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/40001
5 years, 9 months ago (2015-03-23 22:59:33 UTC) #19
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 9 months ago (2015-03-23 22:59:34 UTC) #20
hal.canary
PTAL
5 years, 9 months ago (2015-03-23 22:59:56 UTC) #22
mtklein
I got through catalog so far. This seems like another good candidate to split into ...
5 years, 9 months ago (2015-03-24 16:03:06 UTC) #23
hal.canary
https://codereview.chromium.org/1033543002/diff/60001/src/pdf/SkPDFCatalog.cpp File src/pdf/SkPDFCatalog.cpp (right): https://codereview.chromium.org/1033543002/diff/60001/src/pdf/SkPDFCatalog.cpp#newcode16 src/pdf/SkPDFCatalog.cpp:16: fSubstituteMap.foreach(&Unrefer::Unref); On 2015/03/24 16:03:05, mtklein wrote: > fSubstituteMap.foreach([](SkPDFObject*, SkPDFObject** ...
5 years, 9 months ago (2015-03-24 20:08:05 UTC) #24
hal.canary
On 2015/03/24 16:03:06, mtklein wrote: > I got through catalog so far. This seems like ...
5 years, 9 months ago (2015-03-24 20:09:24 UTC) #25
hal.canary
Please take a look again. I can walk you through this if need be.
5 years, 9 months ago (2015-03-25 16:15:36 UTC) #26
mtklein
lgtm
5 years, 9 months ago (2015-03-25 18:00:41 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/140001
5 years, 9 months ago (2015-03-25 18:01:01 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/111)
5 years, 9 months ago (2015-03-25 18:02:24 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033543002/160001
5 years, 9 months ago (2015-03-25 18:18:05 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 18:29:23 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://skia.googlesource.com/skia/+/f41061cc8dc717b63efe75d2357a3176f04153ec

Powered by Google App Engine
This is Rietveld 408576698