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

Issue 1814153003: Templatize SkToXXX. (Closed)

Created:
4 years, 9 months ago by bungeman-skia
Modified:
4 years, 9 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Templatize SkToXXX. Makes the checked cast in debug more correct, avoiding new warnings in vs2015. BUG=skia:4553 Committed: https://skia.googlesource.com/skia/+/0be9e806af72b3e029e691eef5c891c90d3fd320 Committed: https://skia.googlesource.com/skia/+/68c14d9b3244ef9d58727ff11f2742be9236f46e

Patch Set 1 #

Patch Set 2 : Fix unused variable. #

Total comments: 2

Patch Set 3 : Workaround for old libstdc++. #

Patch Set 4 : Chromium actually uses 4.6.4. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -366 lines) Patch
M gyp/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/utils.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkString.h View 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkTypes.h View 1 chunk +14 lines, -21 lines 0 comments Download
A + include/private/SkTFitsIn.h View 1 10 chunks +78 lines, -69 lines 0 comments Download
M include/private/SkTLogic.h View 1 2 3 4 chunks +23 lines, -4 lines 0 comments Download
M src/core/SkDebug.cpp View 2 chunks +0 lines, -51 lines 0 comments Download
D src/utils/SkTFitsIn.h View 1 chunk +0 lines, -218 lines 0 comments Download

Messages

Total messages: 41 (23 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/1
4 years, 9 months ago (2016-03-18 15:53:35 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/7168) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
4 years, 9 months ago (2016-03-18 15:55:45 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/20001
4 years, 9 months ago (2016-03-18 16:03:47 UTC) #9
bungeman-skia
4 years, 9 months ago (2016-03-18 16:09:55 UTC) #13
bungeman-skia
This change is already too large, but in the future we should probably move SkToXXX ...
4 years, 9 months ago (2016-03-18 16:11:16 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 16:15:39 UTC) #16
mtklein
lgtm https://codereview.chromium.org/1814153003/diff/20001/include/core/SkTypes.h File include/core/SkTypes.h (right): https://codereview.chromium.org/1814153003/diff/20001/include/core/SkTypes.h#newcode261 include/core/SkTypes.h:261: SkASSERT(SkTFitsIn<D>(s)); Remind me why this can't be, SkASSERT(std::numeric_limits<D>::min() ...
4 years, 9 months ago (2016-03-18 16:37:47 UTC) #17
bungeman-skia
https://codereview.chromium.org/1814153003/diff/20001/include/core/SkTypes.h File include/core/SkTypes.h (right): https://codereview.chromium.org/1814153003/diff/20001/include/core/SkTypes.h#newcode261 include/core/SkTypes.h:261: SkASSERT(SkTFitsIn<D>(s)); On 2016/03/18 16:37:46, mtklein wrote: > Remind me ...
4 years, 9 months ago (2016-03-18 17:51:41 UTC) #18
reed1
lgtm
4 years, 9 months ago (2016-03-18 18:12:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/20001
4 years, 9 months ago (2016-03-18 18:16:58 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/0be9e806af72b3e029e691eef5c891c90d3fd320
4 years, 9 months ago (2016-03-18 18:17:59 UTC) #23
bungeman-skia
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1820433002/ by bungeman@google.com. ...
4 years, 9 months ago (2016-03-18 18:53:01 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/40001
4 years, 9 months ago (2016-03-19 20:04:39 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-19 20:13:51 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/60001
4 years, 9 months ago (2016-03-19 21:49:09 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-19 21:58:40 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814153003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814153003/60001
4 years, 9 months ago (2016-03-19 22:05:56 UTC) #39
commit-bot: I haz the power
4 years, 9 months ago (2016-03-19 22:07:01 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/68c14d9b3244ef9d58727ff11f2742be9236f46e

Powered by Google App Engine
This is Rietveld 408576698