Use alignas to force alignment.
authorherb <herb@google.com>
Fri, 4 Nov 2016 15:41:01 +0000 (08:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 4 Nov 2016 15:41:01 +0000 (08:41 -0700)
commit12ae597ef54c35e9c447f5f52ecbc153503e8b73
treee284d94b5c97fc67684791d393bc80a176f957a9
parentbab7945563c2b01f882b37a22b7b3c7ff0e8a3d8
Use alignas to force alignment.

Using alignas reduces code and platform specific macros.

Use alignas instead of std::aligned_storage because it is unimplemneted
in MSVC 2015.

Here is the bug from MS:
https://connect.microsoft.com/VisualStudio/feedback/details/1559873/std-aligned-storage-cannot-align-type-with-16-byte

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2468243002
TBR=reed@google.com

Review-Url: https://codereview.chromium.org/2473143002
include/core/SkPostConfig.h
src/core/SkLinearBitmapPipeline.h
src/core/SkSmallAllocator.h