commit | 84a22e7eef7ef8e55322837d61e90c14c3e4ab8e | [log] [tgz] |
---|---|---|
author | Darren Shen <shend@chromium.org> | Thu Jun 13 01:01:42 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 13 01:01:42 2019 |
tree | 3ca2cd4daa849d09a0001c5e94ce9e05b3806375 | |
parent | d8d37726e461d59b0ad6179e109373b3d17ba480 [diff] |
vk: Use switch instead of look up table for state transitions. We currently use a set of pairs to validate state transitions. A much more lightweight solution is to use the hashes of the transitions. Since our hash can be computed at compile time, we mark it as constexpr and use it in a switch statement to verify state transitions. Bug: 845780 Change-Id: I96d2b0cf59a9ca54ea03767fa6b84c408ebb1de9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1647902 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#668651}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .