Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Issue 2473143002: Use alignas to force alignment. (Closed)

Created:
4 years, 1 month ago by herb_g
Modified:
4 years, 1 month ago
Reviewers:
mtklein, mtklein_C, reed1
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/12ae597ef54c35e9c447f5f52ecbc153503e8b73

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix clang builds. #

Patch Set 3 : Remove comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -33 lines) Patch
M include/core/SkPostConfig.h View 1 chunk +0 lines, -9 lines 0 comments Download
M src/core/SkLinearBitmapPipeline.h View 1 2 3 chunks +7 lines, -13 lines 0 comments Download
M src/core/SkSmallAllocator.h View 1 2 2 chunks +5 lines, -11 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
herb_g
This is my second attempt to simplify this code. The strategy of using aligned_storage is ...
4 years, 1 month ago (2016-11-03 20:41:10 UTC) #5
mtklein_C
That type is literally pointless if it can't go above 8 bytes... way to go ...
4 years, 1 month ago (2016-11-03 20:43:21 UTC) #9
reed1
since this just deletes code from a (pseudo) public header, I approve lgtm
4 years, 1 month ago (2016-11-03 20:44:16 UTC) #10
mtklein_C
https://codereview.chromium.org/2473143002/diff/1/src/core/SkLinearBitmapPipeline.h File src/core/SkLinearBitmapPipeline.h (right): https://codereview.chromium.org/2473143002/diff/1/src/core/SkLinearBitmapPipeline.h#newcode87 src/core/SkLinearBitmapPipeline.h:87: // This could be implemented using std::aligned_storage, but MSVC ...
4 years, 1 month ago (2016-11-03 20:47:36 UTC) #11
herb_g
Fix clang builds.
4 years, 1 month ago (2016-11-03 20:49:33 UTC) #12
herb_g
Remove comment.
4 years, 1 month ago (2016-11-03 20:51:49 UTC) #13
herb_g
On 2016/11/03 20:43:21, mtklein_C wrote: > That type is literally pointless if it can't go ...
4 years, 1 month ago (2016-11-03 20:56:39 UTC) #16
herb_g
Fixed clang builds, and removed comments. PTAL
4 years, 1 month ago (2016-11-04 14:51:56 UTC) #19
mtklein_C
lgtm
4 years, 1 month ago (2016-11-04 15:04:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473143002/40001
4 years, 1 month ago (2016-11-04 15:04:34 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 15:41:04 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/12ae597ef54c35e9c447f5f52ecbc153503e8b73

Powered by Google App Engine
This is Rietveld 408576698