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

Issue 2190643002: SkPDF: refactor font subset: fewer copies (Closed)

Created:
4 years, 4 months ago by hal.canary
Modified:
4 years, 4 months ago
Reviewers:
bungeman-skia
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 font subset: fewer copies BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2190643002 Committed: https://skia.googlesource.com/skia/+/fe8f0e0d3126d27fe9fdd5bc4804392492f14e51

Patch Set 1 #

Patch Set 2 : 2016-07-27 (Wednesday) 11:47:36 EDT #

Patch Set 3 : 2016-07-27 (Wednesday) 14:24:06 EDT #

Total comments: 2

Patch Set 4 : 2016-07-27 (Wednesday) 15:53:56 EDT #

Total comments: 4

Patch Set 5 : 2016-07-27 (Wednesday) 16:22:36 EDT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -103 lines) Patch
M src/pdf/SkPDFDocument.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 chunks +80 lines, -88 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/pdf/SkPDFStream.h View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (20 generated)
hal.canary
PTAL Note: all gm/skp PDFs are identical.
4 years, 4 months ago (2016-07-27 14:42:49 UTC) #6
hal.canary
rebased. take another look.
4 years, 4 months ago (2016-07-27 18:25:21 UTC) #7
bungeman-skia
https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp#newcode1033 src/pdf/SkPDFFont.cpp:1033: fontAsset.reset(this->typeface()->openStream(&ttcIndex)); Hopefully it doesn't matter too much, but note ...
4 years, 4 months ago (2016-07-27 19:26:44 UTC) #12
hal.canary
good catches! https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp#newcode1033 src/pdf/SkPDFFont.cpp:1033: fontAsset.reset(this->typeface()->openStream(&ttcIndex)); On 2016/07/27 19:26:44, bungeman-skia wrote: > ...
4 years, 4 months ago (2016-07-27 19:54:25 UTC) #16
hal.canary
good catches! https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2190643002/diff/40001/src/pdf/SkPDFFont.cpp#newcode1033 src/pdf/SkPDFFont.cpp:1033: fontAsset.reset(this->typeface()->openStream(&ttcIndex)); On 2016/07/27 19:26:44, bungeman-skia wrote: > ...
4 years, 4 months ago (2016-07-27 19:54:26 UTC) #17
bungeman-skia
https://codereview.chromium.org/2190643002/diff/80001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2190643002/diff/80001/src/pdf/SkPDFFont.cpp#newcode994 src/pdf/SkPDFFont.cpp:994: fontData = nullptr; // Release memory if necessary. Instead ...
4 years, 4 months ago (2016-07-27 20:15:59 UTC) #19
hal.canary
https://codereview.chromium.org/2190643002/diff/80001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): https://codereview.chromium.org/2190643002/diff/80001/src/pdf/SkPDFFont.cpp#newcode994 src/pdf/SkPDFFont.cpp:994: fontData = nullptr; // Release memory if necessary. On ...
4 years, 4 months ago (2016-07-27 20:23:04 UTC) #21
bungeman-skia
So long as tomhudson is ok with your use of auto, lgtm.
4 years, 4 months ago (2016-07-27 20:27:29 UTC) #23
hal.canary
everywhere I use auto is with sk_make_sp
4 years, 4 months ago (2016-07-27 20:29:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2190643002/100001
4 years, 4 months ago (2016-07-27 20:29:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2190643002/100001
4 years, 4 months ago (2016-07-27 21:01:30 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 21:14:21 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://skia.googlesource.com/skia/+/fe8f0e0d3126d27fe9fdd5bc4804392492f14e51

Powered by Google App Engine
This is Rietveld 408576698