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

Issue 1823683005: SkPDF: Hold page objects, not SkPDFDevices. (Closed)

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

Description

SkPDF: Hold page objects, not SkPDFDevices. Page Contents: serialize early, at endPage() SkPDFDocument: Rather than holding all SkPDFDevices until onClose(), store fGlyphUseage and array of pages objects. perform_font_subsetting function removed: First half moved to onEndPage. Second half moved to onClose. create_pdf_page function removed: Merged into onEndPage. generate_page_tree: Refactored to use SkTArray<sk_sp<T>> over SkTDArray<T*>. (the former is explicit about ownership, the latter is unclear.) No longer populates a structure of objects to be dumped, unnecessary since dump is always called after serialization. Takes ownership of fPages and returns root of tree-ified version. Less reference churn. SkPDFGlyphSetMap: use new-style iterator. BUG=skia:5087 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1823683005 Committed: https://skia.googlesource.com/skia/+/cc77c12293d1685f5e83d768b30ca9157af1576d

Patch Set 1 #

Total comments: 4

Patch Set 2 : 2016-03-22 (Tuesday) 17:16:46 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -119 lines) Patch
M src/pdf/SkPDFDocument.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 1 8 chunks +52 lines, -91 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 chunk +2 lines, -10 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 chunk +0 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
hal.canary
PTAL. This should clean things up a lot.
4 years, 9 months ago (2016-03-21 21:52:01 UTC) #3
tomhudson
Meta-nit: I like seeing more *why* than *what* in the CL description. (Not that I ...
4 years, 9 months ago (2016-03-22 14:56:17 UTC) #4
hal.canary
On 2016/03/22 14:56:17, tomhudson wrote: > Meta-nit: I like seeing more *why* than *what* in ...
4 years, 9 months ago (2016-03-22 21:17:29 UTC) #6
hal.canary
https://codereview.chromium.org/1823683005/diff/1/src/pdf/SkPDFDocument.cpp File src/pdf/SkPDFDocument.cpp (right): https://codereview.chromium.org/1823683005/diff/1/src/pdf/SkPDFDocument.cpp#newcode130 src/pdf/SkPDFDocument.cpp:130: kids->appendObjRef(std::move(curNodes[i])); On 2016/03/22 14:56:17, tomhudson wrote: > As we ...
4 years, 9 months ago (2016-03-22 21:17:43 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823683005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823683005/20001
4 years, 9 months ago (2016-03-22 21:17:57 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-22 21:32:20 UTC) #11
tomhudson
lgtm
4 years, 9 months ago (2016-03-23 11:57:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823683005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823683005/20001
4 years, 9 months ago (2016-03-23 12:19:26 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-23 13:26:39 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/cc77c12293d1685f5e83d768b30ca9157af1576d

Powered by Google App Engine
This is Rietveld 408576698