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

Issue 4828044: Improve efficiency of glyph id collection during font subsetting. (Closed)

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

Description

Improve efficiency of glyph id collection during font subsetting. BUG=none TEST=none From Mike's comments in http://codereview.appspot.com/4827041/

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update per code review #

Total comments: 2

Patch Set 3 : Update per code review #

Total comments: 6

Patch Set 4 : Update per code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -6 lines) Patch
M include/pdf/SkBitSet.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkBitSet.cpp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 3 chunks +10 lines, -6 lines 0 comments Download
M tests/BitSetTest.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12
reed1
I think <uint32_t> might be a clearer template parameter, but LGTM
12 years, 11 months ago (2011-07-27 14:21:52 UTC) #1
Steve VanDeBogart
http://codereview.appspot.com/4828044/diff/1/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4828044/diff/1/include/pdf/SkBitSet.h#newcode53 include/pdf/SkBitSet.h:53: void exportTo(SkTDArray<unsigned int>* array); I agree uint32_t would be ...
12 years, 11 months ago (2011-07-27 18:07:20 UTC) #2
reed1
+1 for making exportTo() const
12 years, 11 months ago (2011-07-27 18:25:10 UTC) #3
arthurhsu
http://codereview.appspot.com/4828044/diff/1/include/pdf/SkBitSet.h File include/pdf/SkBitSet.h (right): http://codereview.appspot.com/4828044/diff/1/include/pdf/SkBitSet.h#newcode53 include/pdf/SkBitSet.h:53: void exportTo(SkTDArray<unsigned int>* array); On 2011/07/27 18:07:20, Steve VanDeBogart ...
12 years, 11 months ago (2011-07-27 18:37:09 UTC) #4
reed1
Skia ensures that you'll have uint32_t, as it uses it all over the place.
12 years, 11 months ago (2011-07-27 18:38:57 UTC) #5
Steve VanDeBogart
On 2011/07/27 18:38:57, reed1 wrote: > Skia ensures that you'll have uint32_t, as it uses ...
12 years, 11 months ago (2011-07-27 18:41:46 UTC) #6
Steve VanDeBogart
http://codereview.appspot.com/4828044/diff/6001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4828044/diff/6001/include/pdf/SkPDFFont.h#newcode38 include/pdf/SkPDFFont.h:38: void exportTo(SkTDArray<unsigned int>* glyphIDs); This can be const as ...
12 years, 11 months ago (2011-07-27 18:42:14 UTC) #7
arthurhsu
On 2011/07/27 18:41:46, Steve VanDeBogart wrote: > On 2011/07/27 18:38:57, reed1 wrote: > > Skia ...
12 years, 11 months ago (2011-07-27 18:57:51 UTC) #8
arthurhsu
http://codereview.appspot.com/4828044/diff/6001/include/pdf/SkPDFFont.h File include/pdf/SkPDFFont.h (right): http://codereview.appspot.com/4828044/diff/6001/include/pdf/SkPDFFont.h#newcode38 include/pdf/SkPDFFont.h:38: void exportTo(SkTDArray<unsigned int>* glyphIDs); On 2011/07/27 18:42:14, Steve VanDeBogart ...
12 years, 11 months ago (2011-07-27 18:57:58 UTC) #9
Steve VanDeBogart
http://codereview.appspot.com/4828044/diff/10001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4828044/diff/10001/src/pdf/SkPDFFont.cpp#newcode451 src/pdf/SkPDFFont.cpp:451: SkASSERT(sizeof(unsigned int) == sizeof(uint32_t)); There's SK_COMPILE_ASSERT, which is resolved ...
12 years, 11 months ago (2011-07-27 19:54:26 UTC) #10
arthurhsu
http://codereview.appspot.com/4828044/diff/10001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4828044/diff/10001/src/pdf/SkPDFFont.cpp#newcode451 src/pdf/SkPDFFont.cpp:451: SkASSERT(sizeof(unsigned int) == sizeof(uint32_t)); On 2011/07/27 19:54:27, Steve VanDeBogart ...
12 years, 11 months ago (2011-07-27 20:39:31 UTC) #11
Steve VanDeBogart
12 years, 11 months ago (2011-07-27 21:00:26 UTC) #12
LGTM - committed as r1978
Sign in to reply to this message.

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