DescriptionFix 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 : #Messages
Total messages: 5 (0 generated)
|