mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 03:05:42 +00:00
Previously Hashmap used to internally use a Hashset which held entries of key-value pairs. This was cute, but meant that a Hashset held mutable entries, which was a bag-of-bugs waiting to happen (change the entry to hash as something different and you're now in an entirely broken state). Pull the complex bits of Hashset out to HashmapBase, and have both derive from that. I've opted for inheritance over composition here to reduce the amount of structure chasing you'd have to do without debugger pretty-printers. Change-Id: I99e72244b69206a994edabfefd0e28d5d74d08d9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108240 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>