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

Issue 4830068: Improve generation of glyph advance array. (Closed)

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

Description

Improve generation of glyph advance array.

Patch Set 1 #

Total comments: 32

Patch Set 2 : Update per code review #

Total comments: 12

Patch Set 3 : Update per code review #

Total comments: 22

Patch Set 4 : Update per code review #

Patch Set 5 : Update per code review #

Total comments: 6

Patch Set 6 : Update per code review #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -93 lines) Patch
M include/core/SkAdvancedTypefaceMetrics.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M include/core/SkFontHost.h View 1 2 3 8 chunks +18 lines, -12 lines 0 comments Download
M include/core/SkTypeface.h View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M include/core/SkTypes.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M include/pdf/SkPDFFont.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.cpp View 1 2 3 4 3 chunks +17 lines, -2 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 6 9 chunks +62 lines, -18 lines 0 comments Download
M src/pdf/SkPDFFontImpl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 5 chunks +11 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_mac_atsui.cpp View 1 2 3 14 chunks +26 lines, -25 lines 0 comments Download
M src/ports/SkFontHost_mac_coretext.cpp View 1 2 3 4 5 6 11 chunks +26 lines, -24 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 20
arthurhsu
This is the change to reduce native API calling and doubles PDF generation speed on ...
13 years, 4 months ago (2011-08-10 03:34:23 UTC) #1
reed1
http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h File include/core/SkFontHost.h (right): http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h#newcode196 include/core/SkFontHost.h:196: */ Does this new API need to be on ...
13 years, 4 months ago (2011-08-10 13:55:20 UTC) #2
reed1
http://codereview.appspot.com/4830068/diff/1/src/ports/SkFontHost_mac_coretext.cpp File src/ports/SkFontHost_mac_coretext.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/ports/SkFontHost_mac_coretext.cpp#newcode867 src/ports/SkFontHost_mac_coretext.cpp:867: } Why do we call SafeRelease here, instead of ...
13 years, 4 months ago (2011-08-10 14:10:26 UTC) #3
Steve VanDeBogart
Lets talk about the approach to this problem. http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h File include/core/SkFontHost.h (right): http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h#newcode197 include/core/SkFontHost.h:197: static ...
13 years, 4 months ago (2011-08-10 18:11:14 UTC) #4
Chris Guillory
http://codereview.appspot.com/4830068/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/ports/SkFontHost_win.cpp#newcode74 src/ports/SkFontHost_win.cpp:74: * Since LOGFONT wants its textsize as an int, ...
13 years, 4 months ago (2011-08-10 19:35:08 UTC) #5
arthurhsu
http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h File include/core/SkFontHost.h (right): http://codereview.appspot.com/4830068/diff/1/include/core/SkFontHost.h#newcode196 include/core/SkFontHost.h:196: */ On 2011/08/10 13:55:21, reed1 wrote: > Does this ...
13 years, 4 months ago (2011-08-11 01:55:05 UTC) #6
reed1
http://codereview.appspot.com/4830068/diff/9001/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (left): http://codereview.appspot.com/4830068/diff/9001/include/core/SkAdvancedTypefaceMetrics.h#oldcode138 include/core/SkAdvancedTypefaceMetrics.h:138: int num_glyphs, Lets document what these two parameters are: ...
13 years, 4 months ago (2011-08-11 03:34:18 UTC) #7
Chris Guillory
Win FontHost part LGTM. http://codereview.appspot.com/4830068/diff/9001/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4830068/diff/9001/src/core/SkAdvancedTypefaceMetrics.cpp#newcode96 src/core/SkAdvancedTypefaceMetrics.cpp:96: } // Do not call ...
13 years, 4 months ago (2011-08-11 18:04:48 UTC) #8
arthurhsu
http://codereview.appspot.com/4830068/diff/9001/include/core/SkAdvancedTypefaceMetrics.h File include/core/SkAdvancedTypefaceMetrics.h (left): http://codereview.appspot.com/4830068/diff/9001/include/core/SkAdvancedTypefaceMetrics.h#oldcode138 include/core/SkAdvancedTypefaceMetrics.h:138: int num_glyphs, On 2011/08/11 03:34:19, reed1 wrote: > Lets ...
13 years, 4 months ago (2011-08-11 18:48:08 UTC) #9
Steve VanDeBogart
http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp#newcode95 src/core/SkAdvancedTypefaceMetrics.cpp:95: } // Do not call getAdvance if not in ...
13 years, 4 months ago (2011-08-11 20:22:33 UTC) #10
arthurhsu
http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp#newcode95 src/core/SkAdvancedTypefaceMetrics.cpp:95: } // Do not call getAdvance if not in ...
13 years, 4 months ago (2011-08-11 23:50:24 UTC) #11
reed1
regarding MSB/LSB, got it, each element is a glyph ID. Why are these 32bit instead ...
13 years, 4 months ago (2011-08-12 12:46:13 UTC) #12
arthurhsu
On 2011/08/12 12:46:13, reed1 wrote: > regarding MSB/LSB, got it, each element is a glyph ...
13 years, 4 months ago (2011-08-12 17:32:57 UTC) #13
Steve VanDeBogart
http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp#newcode95 src/core/SkAdvancedTypefaceMetrics.cpp:95: } // Do not call getAdvance if not in ...
13 years, 4 months ago (2011-08-12 19:01:59 UTC) #14
arthurhsu
http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp File src/core/SkAdvancedTypefaceMetrics.cpp (right): http://codereview.appspot.com/4830068/diff/1/src/core/SkAdvancedTypefaceMetrics.cpp#newcode95 src/core/SkAdvancedTypefaceMetrics.cpp:95: } // Do not call getAdvance if not in ...
13 years, 4 months ago (2011-08-16 19:06:26 UTC) #15
Steve VanDeBogart
http://codereview.appspot.com/4830068/diff/25001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4830068/diff/25001/src/pdf/SkPDFFont.cpp#newcode755 src/pdf/SkPDFFont.cpp:755: if (fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { What happens if we ...
13 years, 4 months ago (2011-08-16 20:42:51 UTC) #16
arthurhsu
http://codereview.appspot.com/4830068/diff/25001/src/pdf/SkPDFFont.cpp File src/pdf/SkPDFFont.cpp (right): http://codereview.appspot.com/4830068/diff/25001/src/pdf/SkPDFFont.cpp#newcode755 src/pdf/SkPDFFont.cpp:755: if (fontMetrics->fType != SkAdvancedTypefaceMetrics::kTrueType_Font) { On 2011/08/16 20:42:52, Steve ...
13 years, 4 months ago (2011-08-16 21:42:26 UTC) #17
Steve VanDeBogart
LGTM, but doesn't apply cleanly to trunk. Rebase and I'll commit.
13 years, 4 months ago (2011-08-16 22:14:47 UTC) #18
arthurhsu
On 2011/08/16 22:14:47, Steve VanDeBogart wrote: > LGTM, but doesn't apply cleanly to trunk. Rebase ...
13 years, 4 months ago (2011-08-16 22:32:15 UTC) #19
Steve VanDeBogart
13 years, 4 months ago (2011-08-16 22:46:56 UTC) #20
Committed as r2126
Sign in to reply to this message.

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