Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(619)

Issue 4633050: Refactor SkPDFFont to enable font/cmap subsetting (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by arthurhsu
Modified:
12 years, 9 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Refactor SkPDFFont to enable font/cmap subsetting BUG=none TEST=none Rolled out r1956

Patch Set 1 #

Patch Set 2 : Update per Mike Reed's code review #

Total comments: 40

Patch Set 3 : Update per code review #

Patch Set 4 : Update per code review #

Total comments: 68

Patch Set 5 : Update per feedback #

Patch Set 6 : Update per code review #

Patch Set 7 : Update per code review, fix patching error #

Total comments: 34

Patch Set 8 : Update after branching bitset and catalog #

Patch Set 9 : Update misplaced file #

Total comments: 42

Patch Set 10 : Update per code review #

Total comments: 36

Patch Set 11 : Update per code review #

Total comments: 6

Patch Set 12 : Update per code review #

Total comments: 35

Patch Set 13 : Update per code review #

Total comments: 12

Patch Set 14 : Update per code review #

Total comments: 89

Patch Set 15 : Update per code review #

Patch Set 16 : Update iterator #

Total comments: 30

Patch Set 17 : Update per code review #

Total comments: 26

Patch Set 18 : Update per code review #

Total comments: 3

Patch Set 19 : Fix corrupted xref table #

Unified diffs Side-by-side diffs Delta from patch set Stats (+781 lines, -348 lines) Patch
M gyp/pdf.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M include/pdf/SkBitSet.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +15 lines, -4 lines 0 comments Download
M include/pdf/SkPDFDocument.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +114 lines, -58 lines 0 comments Download
M include/pdf/SkPDFPage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M src/pdf/SkBitSet.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFCatalog.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +23 lines, -8 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +29 lines, -0 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 16 chunks +490 lines, -271 lines 0 comments Download
A src/pdf/SkPDFFontImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +90 lines, -0 lines 0 comments Download
M src/pdf/SkPDFPage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41
arthurhsu
12 years, 10 months ago (2011-06-17 22:51:03 UTC) #1
reed1
Lets try to minimize what we make public. Can some of these either helper classes ...
12 years, 10 months ago (2011-06-20 12:39:19 UTC) #2
arthurhsu
On 2011/06/20 12:39:19, reed1 wrote: > Lets try to minimize what we make public. Can ...
12 years, 10 months ago (2011-06-20 18:57:35 UTC) #3
Steve VanDeBogart
Initial comments. http://codereview.appspot.com/4633050/diff/3001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4633050/diff/3001/include/pdf/SkPDFDevice.h#newcode118 include/pdf/SkPDFDevice.h:118: virtual void drawDevice(const SkDraw&, SkDevice*, int x, ...
12 years, 10 months ago (2011-06-23 00:18:27 UTC) #4
arthurhsu
http://codereview.appspot.com/4633050/diff/3001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4633050/diff/3001/include/pdf/SkPDFDevice.h#newcode118 include/pdf/SkPDFDevice.h:118: virtual void drawDevice(const SkDraw&, SkDevice*, int x, int y, ...
12 years, 10 months ago (2011-06-25 00:44:46 UTC) #5
Steve VanDeBogart
Some more comments. http://codereview.appspot.com/4633050/diff/10001/gyp/core.gyp File gyp/core.gyp (right): http://codereview.appspot.com/4633050/diff/10001/gyp/core.gyp#newcode31 gyp/core.gyp:31: '../src/core/SkBitSet.cpp', Should add the header file ...
12 years, 10 months ago (2011-06-27 22:14:27 UTC) #6
reed1
For now, lets move the bitset helper class into /pdf/
12 years, 10 months ago (2011-06-27 22:19:30 UTC) #7
reed1
http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h File include/core/SkBitSet.h (right): http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h#newcode38 include/core/SkBitSet.h:38: // Clear all data. clearAll() ? http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h#newcode44 include/core/SkBitSet.h:44: // ...
12 years, 10 months ago (2011-06-27 22:27:13 UTC) #8
arthurhsu
http://codereview.appspot.com/4633050/diff/10001/gyp/core.gyp File gyp/core.gyp (right): http://codereview.appspot.com/4633050/diff/10001/gyp/core.gyp#newcode31 gyp/core.gyp:31: '../src/core/SkBitSet.cpp', On 2011/06/27 22:14:27, Steve VanDeBogart wrote: > Should ...
12 years, 10 months ago (2011-06-28 21:05:57 UTC) #9
reed1
I don't understand your comment about 8bit -vs- 32bit performance. Your loop is still per-byte, ...
12 years, 10 months ago (2011-06-28 21:15:52 UTC) #10
arthurhsu
On 2011/06/28 21:15:52, reed1 wrote: > I don't understand your comment about 8bit -vs- 32bit ...
12 years, 10 months ago (2011-06-28 22:24:38 UTC) #11
Steve VanDeBogart
Some comments. I will give more later (interview). http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h File include/core/SkBitSet.h (right): http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h#newcode2 include/core/SkBitSet.h:2: * ...
12 years, 10 months ago (2011-06-29 16:58:06 UTC) #12
reed1
+1 for removing apis we don't need yet, and for having only one way to ...
12 years, 10 months ago (2011-06-29 17:18:20 UTC) #13
arthurhsu
Fixed and moved to a separate CR 4635080 Add SkBitSet class for font subsetting. http://codereview.appspot.com/4633050/diff/10001/include/core/SkBitSet.h ...
12 years, 10 months ago (2011-06-29 21:08:12 UTC) #14
arthurhsu
Separated to http://codereview.appspot.com/4650060 per Steve's request. http://codereview.appspot.com/4633050/diff/19001/include/pdf/SkPDFCatalog.h File include/pdf/SkPDFCatalog.h (right): http://codereview.appspot.com/4633050/diff/19001/include/pdf/SkPDFCatalog.h#newcode73 include/pdf/SkPDFCatalog.h:73: /** Give the ...
12 years, 10 months ago (2011-06-29 23:19:19 UTC) #15
arthurhsu
Updated the CL to match latest version of Skia, also reflect changes after submission of ...
12 years, 10 months ago (2011-07-07 00:47:32 UTC) #16
arthurhsu
Chris can you help review this change while Steve is out? Thanks.
12 years, 10 months ago (2011-07-08 22:03:27 UTC) #17
Chris Guillory
Sending out these initial comments that are mostly in the headers. In general I think ...
12 years, 9 months ago (2011-07-12 21:30:29 UTC) #18
reed1
Please add dox/comments in headers for all new methods http://codereview.appspot.com/4633050/diff/24001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4633050/diff/24001/include/pdf/SkPDFDevice.h#newcode227 include/pdf/SkPDFDevice.h:227: ...
12 years, 9 months ago (2011-07-13 13:22:31 UTC) #19
arthurhsu
http://codereview.appspot.com/4633050/diff/24001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4633050/diff/24001/include/pdf/SkPDFDevice.h#newcode37 include/pdf/SkPDFDevice.h:37: class SkPDFGlyphSet; On 2011/07/12 21:30:29, Chris Guillory wrote: > ...
12 years, 9 months ago (2011-07-13 23:40:06 UTC) #20
Chris Guillory
Why do we have SkPDFFontImpl.h? Can't this be a part of SkPDFFont.cpp? http://codereview.appspot.com/4633050/diff/30001/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h ...
12 years, 9 months ago (2011-07-14 22:48:31 UTC) #21
arthurhsu
SkPDFFontImpl.h is done so per Mike's review. I've also tried to rebase SkPDFDevice.h but I ...
12 years, 9 months ago (2011-07-15 01:26:59 UTC) #22
reed1
+1 on early comment: don't add const to integral parameters. It doesn't change anything meaningful ...
12 years, 9 months ago (2011-07-15 12:36:01 UTC) #23
arthurhsu
http://codereview.appspot.com/4633050/diff/40001/include/pdf/SkPDFCatalog.h File include/pdf/SkPDFCatalog.h (right): http://codereview.appspot.com/4633050/diff/40001/include/pdf/SkPDFCatalog.h#newcode96 include/pdf/SkPDFCatalog.h:96: */ On 2011/07/15 12:36:01, reed1 wrote: > In general, ...
12 years, 9 months ago (2011-07-15 17:00:54 UTC) #24
reed1
LGTM for my parts
12 years, 9 months ago (2011-07-15 18:14:59 UTC) #25
Chris Guillory
Looking good. SkPDFFontImpl.h needs to be added to gyp/pdf.gyp. SkPDFDevice.h/cpp don't look rebased. http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFDevice.h File ...
12 years, 9 months ago (2011-07-18 19:11:47 UTC) #26
Steve VanDeBogart
Some comments, I didn't review the changes in SkPDFFont, etc, yet. http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFCatalog.h File include/pdf/SkPDFCatalog.h (right): ...
12 years, 9 months ago (2011-07-18 23:11:12 UTC) #27
Chris Guillory
http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFCatalog.h File include/pdf/SkPDFCatalog.h (right): http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFCatalog.h#newcode97 include/pdf/SkPDFCatalog.h:97: void performFontSubsetting(const SkPDFGlyphSetMap& usage); On 2011/07/18 23:11:12, Steve VanDeBogart ...
12 years, 9 months ago (2011-07-18 23:14:20 UTC) #28
arthurhsu
http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFDevice.h File include/pdf/SkPDFDevice.h (right): http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFDevice.h#newcode33 include/pdf/SkPDFDevice.h:33: class SkPDFGlyphSet; On 2011/07/18 19:11:47, Chris Guillory wrote: > ...
12 years, 9 months ago (2011-07-19 00:29:41 UTC) #29
Chris Guillory
LGTM. I have some comments and I'll defer to Steve. I think he still wants ...
12 years, 9 months ago (2011-07-19 01:23:15 UTC) #30
arthurhsu
http://codereview.appspot.com/4633050/diff/40003/gyp/pdf.gyp File gyp/pdf.gyp (right): http://codereview.appspot.com/4633050/diff/40003/gyp/pdf.gyp#newcode20 gyp/pdf.gyp:20: '../include/pdf/SkPDFFont.h', On 2011/07/19 01:23:15, Chris Guillory wrote: > Can ...
12 years, 9 months ago (2011-07-19 02:02:05 UTC) #31
Steve VanDeBogart
http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4633050/diff/44001/include/pdf/SkPDFFont.h#newcode132 include/pdf/SkPDFFont.h:132: SK_API virtual SkPDFFont* getSubsetFont(SkPDFGlyphSet* usage) = 0; On 2011/07/19 ...
12 years, 9 months ago (2011-07-19 18:13:57 UTC) #32
arthurhsu
http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFCatalog.h File include/pdf/SkPDFCatalog.h (right): http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFCatalog.h#newcode97 include/pdf/SkPDFCatalog.h:97: void performFontSubsetting(const SkPDFGlyphSetMap& usage); On 2011/07/19 18:13:58, Steve VanDeBogart ...
12 years, 9 months ago (2011-07-20 00:53:37 UTC) #33
Steve VanDeBogart
http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFFont.h#newcode69 include/pdf/SkPDFFont.h:69: SkTDArray<FontGlyphSetPair*> fSet; On 2011/07/20 00:53:38, arthurhsu wrote: > On ...
12 years, 9 months ago (2011-07-21 19:07:02 UTC) #34
arthurhsu
http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4633050/diff/59001/include/pdf/SkPDFFont.h#newcode69 include/pdf/SkPDFFont.h:69: SkTDArray<FontGlyphSetPair*> fSet; On 2011/07/21 19:07:02, Steve VanDeBogart wrote: > ...
12 years, 9 months ago (2011-07-22 01:48:47 UTC) #35
Steve VanDeBogart
Here are a couple comments, I'll look through SkPDFFont.cpp and send any more. http://codereview.appspot.com/4633050/diff/73001/include/pdf/SkPDFFont.h File ...
12 years, 9 months ago (2011-07-23 01:10:35 UTC) #36
Steve VanDeBogart
http://codereview.appspot.com/4633050/diff/73001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4633050/diff/73001/src/pdf/SkPDFFont.cpp#newcode665 src/pdf/SkPDFFont.cpp:665: SkPDFDict* fontDescriptor) { relatedFontDescriptor http://codereview.appspot.com/4633050/diff/73001/src/pdf/SkPDFFont.cpp#newcode725 src/pdf/SkPDFFont.cpp:725: fDescriptor->insert("FontName", new SkPDFName( ...
12 years, 9 months ago (2011-07-23 01:31:20 UTC) #37
arthurhsu
http://codereview.appspot.com/4633050/diff/73001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4633050/diff/73001/include/pdf/SkPDFFont.h#newcode144 include/pdf/SkPDFFont.h:144: // Accessors for subclass. On 2011/07/23 01:10:35, Steve VanDeBogart ...
12 years, 9 months ago (2011-07-23 02:58:04 UTC) #38
Steve VanDeBogart
Just a couple minor nits left, so I addressed those and committed this change as ...
12 years, 9 months ago (2011-07-23 20:23:29 UTC) #39
Steve VanDeBogart
I rolled out the change in r1944 because I noticed that with this change we ...
12 years, 9 months ago (2011-07-23 21:14:15 UTC) #40
arthurhsu
12 years, 9 months ago (2011-07-25 21:07:39 UTC) #41

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b