Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 17435003: Fix limit on size of glyph paths. (Closed)

Created:
7 years, 6 months ago by bungeman-skia
Modified:
7 years, 6 months ago
Reviewers:
caryclark
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix limit on size of glyph paths. Some web fonts have been observed to contain glyphs which require a buffer greater than 20KB. In these rare cases we should allocate space on the heap. Most glyphs require less than 8KB, and Windows has a 1MB stack, so in the common case just use the stack. This change also removes the gFTMutex which was both poorly named and used. The constructor does not appear to have any need for it, and with this change the path generation code does not need it. The mask generating code does need memory barriers for correctness, but these bariers are no-ops on x86. We will need another change to clean up this sort of static initialization code. R=caryclark@google.com Committed: https://code.google.com/p/skia/source/detail?r=9700

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -32 lines) Patch
M src/ports/SkFontHost_win.cpp View 1 15 chunks +59 lines, -32 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
bungeman-skia
7 years, 6 months ago (2013-06-18 22:52:22 UTC) #1
caryclark
https://codereview.chromium.org/17435003/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): https://codereview.chromium.org/17435003/diff/1/src/ports/SkFontHost_win.cpp#newcode920 src/ports/SkFontHost_win.cpp:920: // Need a L/L (read) barrier (aquire not needed). ...
7 years, 6 months ago (2013-06-19 12:21:46 UTC) #2
bungeman-skia
We may need to discuss the sanity of EnsureAccessible. https://codereview.chromium.org/17435003/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): https://codereview.chromium.org/17435003/diff/1/src/ports/SkFontHost_win.cpp#newcode920 src/ports/SkFontHost_win.cpp:920: ...
7 years, 6 months ago (2013-06-19 21:52:17 UTC) #3
caryclark
lgtm
7 years, 6 months ago (2013-06-20 14:02:22 UTC) #4
bungeman-skia
7 years, 6 months ago (2013-06-20 15:29:19 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r9700 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698