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

Issue 2327953002: SkPDF: refactor & code cleanup ahead of https://crrev.com/2322403002 (Closed)

Created:
4 years, 3 months ago by hal.canary
Modified:
4 years, 3 months ago
Reviewers:
tomhudson
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPDF: refactor & code cleanup ahead of https://crrev.com/2322403002 SkPDFDevice::GraphicStateEntry: remove unnecessary fFont and fTextSize. SkPDFDevice::updateFont(): replace with update_font() and inlined code. De-duplicate this block of code. SkPDFResourceDict::GetResourceTypePrefix function made public: removes need for temporary SkString returned by SkPDFResourceDict::getResourceName() GlyphPositioner: delay writing intial matrix until first glyph. Assert that widechars is a constant. SkPDFFont::FontType(): make public so that PDFDevice can know about multibyte status. SkPDFFont::countStretch() removed, and the stretch loop flattened. *no changes in PDF output* BUG=skia:5434 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2327953002 Committed: https://skia.googlesource.com/skia/+/c2f9ec1f5e4e8e98489cd5ea9356771cf4d8ce13

Patch Set 1 : find missing semicolon #

Patch Set 2 : simplify #

Total comments: 10

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -140 lines) Patch
M src/pdf/SkPDFDevice.h View 2 chunks +0 lines, -12 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 7 chunks +62 lines, -104 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 2 chunks +2 lines, -18 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFResourceDict.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pdf/SkPDFResourceDict.cpp View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
hal.canary
PTAL
4 years, 3 months ago (2016-09-09 22:51:52 UTC) #10
tomhudson
very LGTM https://codereview.chromium.org/2327953002/diff/40001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2327953002/diff/40001/src/pdf/SkPDFDevice.cpp#newcode862 src/pdf/SkPDFDevice.cpp:862: , fCurrentMatrixOrigin(origin) Nice bugfix! (?) https://codereview.chromium.org/2327953002/diff/40001/src/pdf/SkPDFDevice.cpp#newcode877 src/pdf/SkPDFDevice.cpp:877: ...
4 years, 3 months ago (2016-09-12 14:49:10 UTC) #15
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/2327953002/60001
4 years, 3 months ago (2016-09-12 14:59:09 UTC) #18
hal.canary
https://codereview.chromium.org/2327953002/diff/40001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/2327953002/diff/40001/src/pdf/SkPDFDevice.cpp#newcode862 src/pdf/SkPDFDevice.cpp:862: , fCurrentMatrixOrigin(origin) On 2016/09/12 14:49:09, tomhudson wrote: > Nice ...
4 years, 3 months ago (2016-09-12 14:59:24 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 15:55:34 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://skia.googlesource.com/skia/+/c2f9ec1f5e4e8e98489cd5ea9356771cf4d8ce13

Powered by Google App Engine
This is Rietveld 408576698