aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/conicpaths.cpp
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-20 15:29:16 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-20 15:29:16 +0000
commit05a729ff90f75ac013873742ee0e4ae7e5e6e415 (patch)
tree9df050fdcda16a82a5e47bb4f5bdfac1b50a5305 /gm/conicpaths.cpp
parenta154dc89858de5e846e145f73791fb0bf5df0717 (diff)
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 Review URL: https://codereview.chromium.org/17435003 git-svn-id: http://skia.googlecode.com/svn/trunk@9700 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/conicpaths.cpp')
0 files changed, 0 insertions, 0 deletions