commit | 82bd511527de2cd04c501e12ed761fac78bd5967 | [log] [tgz] |
---|---|---|
author | Adrienne Walker <enne@chromium.org> | Wed Jul 17 15:56:23 2019 -0700 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Jul 18 12:27:15 2019 +0000 |
tree | fc44c16fabf90237e34e2e501437cc6592aa6134 | |
parent | a2e7d5e2b63c3904ce205ace64cff1ed7a3eed7e [diff] |
Use explicit alignment for 8-byte types See: https://software.intel.com/en-us/blogs/2011/08/18/understanding-x86-vs-arm-memory-alignment-on-android alignof(uint64_t) is not consistent across x64 and x86, and so it's not safe to use this. This scenario can happen in Chrome for WebView cases. This will not fully fix issue 977231 as that happens on ARM as well, but this was just noticed via inspection. Bug: chromium:781095, chromium:977231 Change-Id: If6dcc0ba776f82e8f20a50e6074822fb21a05aff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/228300 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>