DescriptionSome usability ideas around SkTHash.
- By default, use new SkGoodHash to hash keys, which is:
* for 4 byte values, use SkChecksum::Mix,
* for SkStrings, use SkChecksum::Murmur3 on the data,
* for other structs, shallow hash the struct with Murmur3.
- Expand SkChecksum::Murmur3 to support non-4-byte-aligned data.
- Add const foreach() methods.
- Have foreach() take a functor, which allows lambdas.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/02f46cf878535fb79317d15ebed66dfa3f2cd772
Patch Set 1 #Patch Set 2 : comment, simplify tests #Patch Set 3 : minor tweaks #
Messages
Total messages: 7 (3 generated)
|