commit | 7109434de0941e6c24240ba850d72fb9e3337ef3 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Jul 24 10:05:43 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Jul 24 18:06:30 2020 +0000 |
tree | fdb0c3e6876f06a8d444b68664bcd91f2ab299d2 | |
parent | 58adb34cda8a0ef2d618e37be8e0313c498915b9 [diff] |
Enforce trivially-copyable types on unaligned loads/stores/casts. These correctness checks were inspired by Chromium's bit_cast: https://chromium.googlesource.com/chromium/src/base/+/refs/heads/master/bit_cast.h This also closes out a long-standing TODO in the code. Change-Id: Iaf570fc564955ba90115a52bcaa743a170bdbdc4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/305718 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Mike Klein <mtklein@google.com>