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

Issue 2368293002: My take on SkAlign changes. (Closed)

Created:
4 years, 2 months ago by mtklein_C
Modified:
4 years, 2 months ago
Reviewers:
cblume
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

My take on SkAlign changes. Like the other change, it makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign<N>(x). We can still decide if we want to sed away the macros independently. This just does it in a somewhat less repetitive way, and adds some tests. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 No public API changes. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/e1a5f4e292384046678edc5c1e360b3e13dc118c

Patch Set 1 #

Patch Set 2 : refactor to make N a template parameter #

Patch Set 3 : also test SkAlign(ptr) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -10 lines) Patch
M include/core/SkTypes.h View 1 1 chunk +35 lines, -10 lines 0 comments Download
M tests/MathTest.cpp View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
mtklein_C
4 years, 2 months ago (2016-09-26 14:23:29 UTC) #13
cblume
On 2016/09/26 14:23:29, mtklein_C wrote: I'm cool with this method. It is roughly the same ...
4 years, 2 months ago (2016-09-26 17:13:47 UTC) #16
mtklein_C
> I like how it casts the type to uintptr_t which means you don't need ...
4 years, 2 months ago (2016-09-26 17:21:04 UTC) #17
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/2368293002/40001
4 years, 2 months ago (2016-09-26 17:27:01 UTC) #19
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/2368293002/40001
4 years, 2 months ago (2016-09-26 17:27:32 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/e1a5f4e292384046678edc5c1e360b3e13dc118c
4 years, 2 months ago (2016-09-26 17:31:15 UTC) #25
mtklein
4 years, 2 months ago (2016-09-27 01:20:49 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2372083002/ by mtklein@google.com.

The reason for reverting is: Let's see if reverting this helps the roll..

Powered by Google App Engine
This is Rietveld 408576698