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

Issue 18977002: Add SkPDFResourceDict class, refactor existing code (Closed)

Created:
7 years, 5 months ago by ducky
Modified:
7 years, 5 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Adds SkPDFResourceDict class, refactor existing code to use it. Committed: http://code.google.com/p/skia/source/detail?r=10202 Committed: http://code.google.com/p/skia/source/detail?r=10245 CL still busted. Superceded by https://codereview.chromium.org/19954011

Patch Set 1 #

Total comments: 35

Patch Set 2 : Addresses code review comments. #

Total comments: 20

Patch Set 3 : Fix more style issues. Lazy-initialize sub-dicts. #

Patch Set 4 : More cleanup. #

Patch Set 5 : Fixes 80 cols #

Total comments: 10

Patch Set 6 : Add SkPDFDict::getResourceName, and refactor into existing code. #

Total comments: 4

Patch Set 7 : Address review comments. #

Total comments: 10

Patch Set 8 : Revert SkPDFStream to SkData CL #

Patch Set 9 : Rename SkPDFResourceDict::getResources to getRefResources (fix Clang build) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -125 lines) Patch
M gyp/pdf.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 3 chunks +3 lines, -18 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 4 chunks +26 lines, -97 lines 0 comments Download
M src/pdf/SkPDFFormXObject.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M src/pdf/SkPDFPage.cpp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
A src/pdf/SkPDFResourceDict.h View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download
A src/pdf/SkPDFResourceDict.cpp View 1 2 3 4 5 6 7 8 1 chunk +125 lines, -0 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 2 3 4 5 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ducky
This is a Pre-CL for transparency gradients (18585002), which uses the SkPDFResourceDict class to more ...
7 years, 5 months ago (2013-07-10 03:15:51 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/18977002/diff/1/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): https://codereview.chromium.org/18977002/diff/1/include/pdf/SkPDFDevice.h#newcode211 include/pdf/SkPDFDevice.h:211: SkPDFResourceDict* fResourceDict; As is this doesn't include the proc ...
7 years, 5 months ago (2013-07-10 18:24:31 UTC) #2
ducky
Addresses code review comments. Major stylistic changes, especially with the enum to string mapping. Also ...
7 years, 5 months ago (2013-07-10 22:54:34 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/18977002/diff/1/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): https://codereview.chromium.org/18977002/diff/1/include/pdf/SkPDFDevice.h#newcode211 include/pdf/SkPDFDevice.h:211: SkPDFResourceDict* fResourceDict; On 2013/07/10 22:54:34, ducky wrote: > On ...
7 years, 5 months ago (2013-07-11 17:50:23 UTC) #4
ducky
Sub-dicts now lazily initialized, and addresses more code review comments. https://codereview.chromium.org/18977002/diff/7001/src/pdf/SkPDFResourceDict.cpp File src/pdf/SkPDFResourceDict.cpp (right): https://codereview.chromium.org/18977002/diff/7001/src/pdf/SkPDFResourceDict.cpp#newcode22 ...
7 years, 5 months ago (2013-07-11 23:09:50 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/18977002/diff/25001/src/pdf/SkPDFResourceDict.cpp File src/pdf/SkPDFResourceDict.cpp (right): https://codereview.chromium.org/18977002/diff/25001/src/pdf/SkPDFResourceDict.cpp#newcode26 src/pdf/SkPDFResourceDict.cpp:26: static char resource_type_prefixes[] = { sorry, this should be ...
7 years, 5 months ago (2013-07-12 19:14:59 UTC) #6
ducky
Another code review iteration! This adds SkPDFResourceDict::getResourceName and does associated refactoring. https://codereview.chromium.org/18977002/diff/25001/src/pdf/SkPDFResourceDict.cpp File src/pdf/SkPDFResourceDict.cpp (right): ...
7 years, 5 months ago (2013-07-12 21:18:17 UTC) #7
vandebo (ex-Chrome)
A couple nits then just waiting for the pre-cls to land. https://codereview.chromium.org/18977002/diff/30001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): ...
7 years, 5 months ago (2013-07-12 21:58:58 UTC) #8
ducky
Now, just a matter of waiting for the Great SkData Debate... https://codereview.chromium.org/18977002/diff/30001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): ...
7 years, 5 months ago (2013-07-12 23:49:31 UTC) #9
edisonn
https://codereview.chromium.org/18977002/diff/46001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/18977002/diff/46001/src/pdf/SkPDFDevice.cpp#newcode442 src/pdf/SkPDFDevice.cpp:442: fContentStream->writeText("/Pattern CS /Pattern cs /"); I have seen this ...
7 years, 5 months ago (2013-07-17 18:38:22 UTC) #10
ducky
https://codereview.chromium.org/18977002/diff/46001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): https://codereview.chromium.org/18977002/diff/46001/src/pdf/SkPDFDevice.cpp#newcode442 src/pdf/SkPDFDevice.cpp:442: fContentStream->writeText("/Pattern CS /Pattern cs /"); On 2013/07/17 18:38:22, edisonn ...
7 years, 5 months ago (2013-07-17 19:51:25 UTC) #11
edisonn
LGTM from me - Steve, do you have any comments?
7 years, 5 months ago (2013-07-17 20:07:30 UTC) #12
vandebo (ex-Chrome)
LGTM
7 years, 5 months ago (2013-07-17 20:54:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/richardlin@chromium.org/18977002/56001
7 years, 5 months ago (2013-07-19 18:36:00 UTC) #14
commit-bot: I haz the power
Change committed as 10202
7 years, 5 months ago (2013-07-19 18:58:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/richardlin@chromium.org/18977002/56001
7 years, 5 months ago (2013-07-22 18:20:37 UTC) #16
commit-bot: I haz the power
Change committed as 10245
7 years, 5 months ago (2013-07-22 18:20:54 UTC) #17
fmalita_google_do_not_use
On 2013/07/22 18:20:54, I haz the power (commit-bot) wrote: > Change committed as 10245 Looks ...
7 years, 5 months ago (2013-07-22 18:36:06 UTC) #18
ducky
7 years, 5 months ago (2013-07-22 18:49:49 UTC) #19
Message was sent while issue was closed.
Renamed SkPDFResourceDict::getResources to getRefResources to fix the Clang
build error.

Powered by Google App Engine
This is Rietveld 408576698