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

Issue 4844043: Use bfrange to shrink ToUnicode table. (Closed)

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

Description

Use bfrange to shrink ToUnicode table. BUG=258 TEST=none

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update per code review #

Patch Set 3 : Update per code review #

Total comments: 26

Patch Set 4 : Update per code review #

Patch Set 5 : Add missing file #

Total comments: 18

Patch Set 6 : Update per code review #

Patch Set 7 : Update per code review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -36 lines) Patch
M gyp/tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 2 chunks +133 lines, -36 lines 2 comments Download
A tests/ToUnicode.cpp View 1 2 3 4 5 6 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 11
arthurhsu
13 years, 1 month ago (2011-08-03 01:27:16 UTC) #1
TomH
How much shrinkage does this give us?
13 years, 1 month ago (2011-08-03 13:28:46 UTC) #2
reed1
bfrange could probably use some isolated unittests, just to be sure we handle all of ...
13 years, 1 month ago (2011-08-03 14:46:02 UTC) #3
arthurhsu
On 2011/08/03 13:28:46, TomH wrote: > How much shrinkage does this give us? <2KB per ...
13 years, 1 month ago (2011-08-03 17:09:42 UTC) #4
arthurhsu
I've added unit tests and updated code based on Mike's comment. The unit tests unveiled ...
13 years, 1 month ago (2011-08-03 20:41:36 UTC) #5
Steve VanDeBogart
http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp#newcode373 src/pdf/SkPDFFont.cpp:373: namespace { We don't need a namespace here - ...
13 years, 1 month ago (2011-08-03 23:30:22 UTC) #6
Steve VanDeBogart
http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp#newcode487 src/pdf/SkPDFFont.cpp:487: SkPDFStream* generate_tounicode_cmap(const SkTDArray<SkUnichar>& glyphUnicode, this should still be static. ...
13 years, 1 month ago (2011-08-03 23:35:03 UTC) #7
arthurhsu
http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp#newcode373 src/pdf/SkPDFFont.cpp:373: namespace { On 2011/08/03 23:30:22, Steve VanDeBogart wrote: > ...
13 years, 1 month ago (2011-08-04 00:13:58 UTC) #8
Steve VanDeBogart
http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp#newcode447 src/pdf/SkPDFFont.cpp:447: if (i == base.fStart + continuousEntries && On 2011/08/04 ...
13 years, 1 month ago (2011-08-04 17:15:53 UTC) #9
arthurhsu
http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4844043/diff/7001/src/pdf/SkPDFFont.cpp#newcode447 src/pdf/SkPDFFont.cpp:447: if (i == base.fStart + continuousEntries && On 2011/08/04 ...
13 years, 1 month ago (2011-08-08 17:38:14 UTC) #10
Steve VanDeBogart
13 years, 1 month ago (2011-08-08 22:34:37 UTC) #11
LGTM with nits... fixed and committed as r2075.

http://codereview.appspot.com/4844043/diff/2003/src/pdf/SkPDFFont.cpp
File src/pdf/SkPDFFont.cpp (right):

http://codereview.appspot.com/4844043/diff/2003/src/pdf/SkPDFFont.cpp#newcode470
src/pdf/SkPDFFont.cpp:470: (i >> 8) == (currentRangeEntry.fStart >> 8) &&
nit: 470-472 in 8 more

http://codereview.appspot.com/4844043/diff/2003/src/pdf/SkPDFFont.cpp#newcode505
src/pdf/SkPDFFont.cpp:505: // The spec requires all bfchar entries for a font
must present before
nit: present -> come
Sign in to reply to this message.

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