commit | 02f46cf878535fb79317d15ebed66dfa3f2cd772 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Fri Mar 20 13:48:42 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Mar 20 13:48:42 2015 -0700 |
tree | a1a4c7994b395cd2ef88b4df62057d728d61fb4d | |
parent | ce6acc91085c4b6d87d4bac84e66193908e648f9 [diff] |
Some 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: Review URL: https://codereview.chromium.org/1021033002