|
|
DescriptionMy 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) #
Messages
Total messages: 26 (19 generated)
Description was changed from ========== My take on SkAlign changes. BUG=skia: ========== to ========== My take on SkAlign changes. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
Description was changed from ========== My take on SkAlign changes. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign(x, N). We can decide if we want to keep the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
The CQ bit was checked by mtklein@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign(x, N). We can decide if we want to keep the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign<N>(x). We can decide if we want to keep the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
The CQ bit was checked by mtklein@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign<N>(x). We can decide if we want to keep the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign<N>(x). We can decide if we want to sed away the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
Description was changed from ========== My take on SkAlign changes. This makes SkAlignN(x) macros work for pointers, and makes the macros themselves just syntax sugar for SkAlign<N>(x). We can decide if we want to sed away the macros independently. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== 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 more compact way. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
Description was changed from ========== 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 more compact way. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== 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. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ==========
Description was changed from ========== 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. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368293002 ========== to ========== 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 ==========
mtklein@chromium.org changed reviewers: + cblume@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/09/26 14:23:29, mtklein_C wrote: I'm cool with this method. It is roughly the same idea as what I wrote. I like how it casts the type to uintptr_t which means you don't need separate versions for pointers and non-pointers. lgtm
> I like how it casts the type to uintptr_t which means you don't need separate versions for pointers and non-pointers. Just so we're clear, it does have different versions for pointers and non-pointers. The version for pointers is, cast to uintptr_t, use that, then cast back. All other types are aligned in their native type, not uintptr_t.
The CQ bit was checked by mtklein@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by mtklein@chromium.org
Description was changed from ========== 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 ========== to ========== 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 ==========
The CQ bit was checked by mtklein@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/e1a5f4e292384046678edc5c1e360b3e13dc118c
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.. |