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

Issue 842253003: SkPDFCanon (Closed)

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

Description

SkPDFCanon SkPDFCanon's fields and methods will eventually become part of SkPDFDocument/SkDocument_PDF. For now, it exists as a singleton to preflight that transition. This replaces three global arrays in SkPDFFont, SkPDFShader, and SkPDFGraphicsContext. This code is still thread-unsafe (http://skbug.com/2683), but moving this functionality into SkPDFDocument will fix that. This CL does not change pdf output from either GMs or SKPs. This change also simplifies some code around the SkPDFCanon methods. BUG=skia:2683 Committed: https://skia.googlesource.com/skia/+/fb62b3d423fa34c672df42f47017dbef087d19e9

Patch Set 1 #

Total comments: 28

Patch Set 2 : react to comments #

Total comments: 7

Patch Set 3 : nits #

Patch Set 4 : did you mean struct here? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -339 lines) Patch
M gyp/pdf.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A src/pdf/SkPDFCanon.h View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A src/pdf/SkPDFCanon.cpp View 1 2 1 chunk +136 lines, -0 lines 0 comments Download
M src/pdf/SkPDFFont.h View 1 3 chunks +11 lines, -14 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 8 chunks +36 lines, -85 lines 0 comments Download
M src/pdf/SkPDFGraphicState.h View 1 2 chunks +2 lines, -19 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 2 7 chunks +93 lines, -100 lines 0 comments Download
M src/pdf/SkPDFShader.h View 1 1 chunk +8 lines, -15 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 19 chunks +71 lines, -106 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
hal.canary
ptal
5 years, 11 months ago (2015-01-10 00:35:54 UTC) #2
hal.canary
ping
5 years, 11 months ago (2015-01-16 16:37:22 UTC) #3
hal.canary
5 years, 11 months ago (2015-01-20 21:10:16 UTC) #5
mtklein
https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.cpp#newcode67 src/pdf/SkPDFCanon.cpp:67: fFontRecords[i].fFont, fFontRecords[i].fFontID, Might put all these arguments one per ...
5 years, 11 months ago (2015-01-20 21:59:52 UTC) #6
djsollen
I echo mike's sentiment and add my 2 cents on the class definition https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.h File ...
5 years, 11 months ago (2015-01-21 14:10:27 UTC) #8
mtklein
https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.h File src/pdf/SkPDFCanon.h (right): https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.h#newcode68 src/pdf/SkPDFCanon.h:68: SkBaseMutex* fFontMutex; On 2015/01/21 14:10:27, djsollen wrote: > why ...
5 years, 11 months ago (2015-01-21 15:14:40 UTC) #9
hal.canary
https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/842253003/diff/1/src/pdf/SkPDFCanon.cpp#newcode67 src/pdf/SkPDFCanon.cpp:67: fFontRecords[i].fFont, fFontRecords[i].fFontID, On 2015/01/20 21:59:51, mtklein wrote: > Might ...
5 years, 11 months ago (2015-01-21 17:07:51 UTC) #10
mtklein
lgtm mod nits https://codereview.chromium.org/842253003/diff/20001/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/842253003/diff/20001/src/pdf/SkPDFCanon.cpp#newcode105 src/pdf/SkPDFCanon.cpp:105: SkDEBUGFAIL("pdfShader not found"); leftover, or something ...
5 years, 11 months ago (2015-01-21 17:24:38 UTC) #11
hal.canary
https://codereview.chromium.org/842253003/diff/20001/src/pdf/SkPDFCanon.cpp File src/pdf/SkPDFCanon.cpp (right): https://codereview.chromium.org/842253003/diff/20001/src/pdf/SkPDFCanon.cpp#newcode105 src/pdf/SkPDFCanon.cpp:105: SkDEBUGFAIL("pdfShader not found"); On 2015/01/21 17:24:38, mtklein wrote: > ...
5 years, 11 months ago (2015-01-21 17:45:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/842253003/40001
5 years, 11 months ago (2015-01-21 17:46:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot/builds/1602)
5 years, 11 months ago (2015-01-21 17:48:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/842253003/60001
5 years, 11 months ago (2015-01-21 17:52:20 UTC) #18
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 17:59:19 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/fb62b3d423fa34c672df42f47017dbef087d19e9

Powered by Google App Engine
This is Rietveld 408576698