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

Issue 4627077: Create SkBitSet class for font subsetting (Closed)

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

Description

Create SkBitSet class for font subsetting Separate change from CR 4633050 BUG=none TEST=none

Patch Set 1 #

Total comments: 22

Patch Set 2 : Update per code review #

Total comments: 11

Patch Set 3 : Update per code review #

Total comments: 4

Patch Set 4 : Update per code review #

Total comments: 4

Patch Set 5 : Update per code review #

Patch Set 6 : Add test cases #

Patch Set 7 : Update per code review #

Total comments: 12

Patch Set 8 : Update per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -0 lines) Patch
M gyp/pdf.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A include/pdf/SkBitSet.h View 1 2 3 4 5 6 7 1 chunk +68 lines, -0 lines 0 comments Download
A src/pdf/SkBitSet.cpp View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download
A tests/BitSetTest.cpp View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 21
arthurhsu
Have problems with git for previous attempt, please use this one instead, thanks.
13 years ago (2011-06-29 22:43:00 UTC) #1
arthurhsu
Sorry for deleting previous issue. I didn't realize I can use git cl <issue>.
13 years ago (2011-06-29 22:45:54 UTC) #2
Steve VanDeBogart
http://codereview.appspot.com/4627077/diff/1/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4627077/diff/1/include/pdf/SkBitSet.h#newcode24 include/pdf/SkBitSet.h:24: SkBitSet(); Without reset, I don't think the empty constructor ...
13 years ago (2011-06-29 22:55:00 UTC) #3
arthurhsu
http://codereview.appspot.com/4627077/diff/1/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4627077/diff/1/include/pdf/SkBitSet.h#newcode24 include/pdf/SkBitSet.h:24: SkBitSet(); On 2011/06/29 22:55:00, Steve VanDeBogart wrote: > Without ...
13 years ago (2011-06-30 00:12:46 UTC) #4
reed1
I like the cleaner api. I would consider making internalGet() inlined, since in the release ...
13 years ago (2011-06-30 12:58:55 UTC) #5
Steve VanDeBogart
On 2011/06/30 12:58:55, reed1 wrote: > I like the cleaner api. > > I would ...
13 years ago (2011-06-30 16:16:45 UTC) #6
reed1
On 2011/06/30 16:16:45, Steve VanDeBogart wrote: > On 2011/06/30 12:58:55, reed1 wrote: > > I ...
13 years ago (2011-06-30 16:31:33 UTC) #7
arthurhsu
http://codereview.appspot.com/4627077/diff/7001/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4627077/diff/7001/include/pdf/SkBitSet.h#newcode24 include/pdf/SkBitSet.h:24: /** The actual size will be rounded to 32-bit ...
13 years ago (2011-06-30 18:04:57 UTC) #8
reed1
Thanks for the debuggin fBitCount. Now that I see it, and see operator==, I think ...
13 years ago (2011-06-30 18:13:17 UTC) #9
arthurhsu
http://codereview.appspot.com/4627077/diff/11001/src/pdf/SkBitSet.cpp File src/pdf/SkBitSet.cpp (right): http://codereview.appspot.com/4627077/diff/11001/src/pdf/SkBitSet.cpp#newcode35 src/pdf/SkBitSet.cpp:35: fDwordCount = rhs.fDwordCount; On 2011/06/30 18:13:17, reed1 wrote: > ...
13 years ago (2011-06-30 18:26:13 UTC) #10
reed1
Ah, I didn't know the bits would be null. Perhaps that could be the check, ...
13 years ago (2011-06-30 18:30:44 UTC) #11
Steve VanDeBogart
This looks pretty good. Baring objection, I'll commit this tomorrow. http://codereview.appspot.com/4627077/diff/9003/src/pdf/SkBitSet.cpp File src/pdf/SkBitSet.cpp (right): http://codereview.appspot.com/4627077/diff/9003/src/pdf/SkBitSet.cpp#newcode64 ...
13 years ago (2011-07-01 02:26:28 UTC) #12
arthurhsu
http://codereview.appspot.com/4627077/diff/9003/src/pdf/SkBitSet.cpp File src/pdf/SkBitSet.cpp (right): http://codereview.appspot.com/4627077/diff/9003/src/pdf/SkBitSet.cpp#newcode64 src/pdf/SkBitSet.cpp:64: SkASSERT((size_t)index < fBitCount); On 2011/07/01 02:26:29, Steve VanDeBogart wrote: ...
13 years ago (2011-07-01 03:13:23 UTC) #13
reed1
SkBitSet set0(1); SkBitSet set1(2); set0.clearAll(); set1.clearAll(); SkASSERT(set0 != set1); <--- this will fail Do you ...
13 years ago (2011-07-01 12:37:50 UTC) #14
Steve VanDeBogart
Arthur, can you also write a few basic tests to add to the 'tests' target?
13 years ago (2011-07-01 16:15:06 UTC) #15
arthurhsu
On 2011/07/01 12:37:50, reed1 wrote: > SkBitSet set0(1); > SkBitSet set1(2); > > set0.clearAll(); > ...
13 years ago (2011-07-01 17:05:29 UTC) #16
arthurhsu
13 years ago (2011-07-01 19:03:18 UTC) #17
reed1
Nice. Lots of small comments, none of which are mandatory, except the self-assign check in ...
13 years ago (2011-07-01 21:46:22 UTC) #18
reed1
Great to see a unittest!
13 years ago (2011-07-01 21:47:00 UTC) #19
arthurhsu
http://codereview.appspot.com/4627077/diff/17002/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4627077/diff/17002/include/pdf/SkBitSet.h#newcode60 include/pdf/SkBitSet.h:60: SkASSERT(index >= 0); On 2011/07/01 21:46:22, reed1 wrote: > ...
13 years ago (2011-07-01 22:11:26 UTC) #20
Steve VanDeBogart
13 years ago (2011-07-02 01:27:42 UTC) #21
Committed (with a couple last nits)
http://code.google.com/p/skia/source/detail?r=1788
Sign in to reply to this message.

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