DescriptionAllocate memory in SkTDynamicHash on first use.
This eliminates any dynamic allocation for hash tables that are never used.
This helps SkPicture, where some tables (SkPaint) are almost always used, but
some rarely (SkMatrix) or never (SkRegion).
This also removes the (as yet unimportant) ability for the hash table to
shrink. This makes resizing harder to reason about, so I'd like to leave it
out until we see a need.
BUG=skia:1850
Committed: http://code.google.com/p/skia/source/detail?r=13051
Patch Set 1 #Patch Set 2 : add missing this #
Messages
Total messages: 5 (0 generated)
|