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

Issue 1824733002: For *ToFixed, in debug mode, assert that the value is in range. (Closed)

Created:
4 years, 9 months ago by dogben
Modified:
4 years, 7 months ago
Reviewers:
mtklein, reed1
CC:
f(malita), jcgregorio, reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@scalar-pin-to-fixed
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

For *ToFixed, in debug mode, assert that the value is in range. Use SkFloatPinToFixed in SkTwoPointConicalGradient.cpp because it is failing in DM. fmalita is working on replacing this code with the 4f version, so I'm not bothering to fix it. (The beginnings of a real fix are in https://codereview.chromium.org/1767163003, which I do not plan to commit.) BUG=skia:4632 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824733002 Committed: https://skia.googlesource.com/skia/+/93dc33972cd6a418e84270298b856d2de08d9c1c

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Get rid of #undef. Don't #ifdef SK_DEBUG. #

Total comments: 1

Patch Set 3 : Whitespace. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -70 lines) Patch
M include/private/SkFixed.h View 1 2 3 4 chunks +76 lines, -68 lines 0 comments Download
M src/core/SkScan.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (21 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/1824733002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/1
4 years, 9 months ago (2016-03-21 18:28:44 UTC) #3
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/7244)
4 years, 9 months ago (2016-03-21 18:29:54 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/40001
4 years, 9 months ago (2016-03-21 20:04:21 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 20:16:14 UTC) #12
dogben
4 years, 9 months ago (2016-03-21 20:19:29 UTC) #14
mtklein
https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h File include/core/SkFixed.h (left): https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h#oldcode46 include/core/SkFixed.h:46: #ifdef SK_DEBUG Ditto. https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h File include/core/SkFixed.h (right): https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h#newcode36 include/core/SkFixed.h:36: ...
4 years, 9 months ago (2016-03-22 12:38:03 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/60001
4 years, 9 months ago (2016-03-22 18:22:29 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-22 18:39:38 UTC) #19
dogben
On 2016/03/22 at 12:38:03, mtklein wrote: > https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h > File include/core/SkFixed.h (left): > > https://codereview.chromium.org/1824733002/diff/40001/include/core/SkFixed.h#oldcode46 ...
4 years, 9 months ago (2016-03-22 23:34:03 UTC) #20
mtklein
lgtm https://codereview.chromium.org/1824733002/diff/60001/include/core/SkFixed.h File include/core/SkFixed.h (right): https://codereview.chromium.org/1824733002/diff/60001/include/core/SkFixed.h#newcode32 include/core/SkFixed.h:32: #define SkFixedToFloat(x) ((x) * 1.52587890625e-5f) This may no ...
4 years, 9 months ago (2016-03-23 02:16:41 UTC) #21
dogben
Adding reed for API addition of SkFloatToFixed_Unsafe, SkDoubleToFixed_Unsafe, and SkFloatToFixed3232_Unsafe, although I'm hoping to move ...
4 years, 9 months ago (2016-03-23 17:46:30 UTC) #23
reed1
Do we think there are any clients that use SkFixed? Can we eliminate them so ...
4 years, 9 months ago (2016-03-23 20:08:20 UTC) #24
dogben
On 2016/03/23 at 20:08:20, reed wrote: > Do we think there are any clients that ...
4 years, 9 months ago (2016-03-23 20:13:17 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/100001
4 years, 8 months ago (2016-04-01 14:38:41 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/1636) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
4 years, 8 months ago (2016-04-01 14:39:52 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/100001
4 years, 8 months ago (2016-04-01 14:41:21 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/7557)
4 years, 8 months ago (2016-04-01 14:41:32 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/120001
4 years, 8 months ago (2016-04-01 14:42:12 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 15:04:11 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824733002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824733002/140001
4 years, 8 months ago (2016-04-07 16:40:27 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://skia.googlesource.com/skia/+/93dc33972cd6a418e84270298b856d2de08d9c1c
4 years, 8 months ago (2016-04-07 16:52:23 UTC) #42
fmalita_google_do_not_use
A revert of this CL (patchset #6 id:140001) has been created in https://codereview.chromium.org/1868933004/ by fmalita@google.com. ...
4 years, 8 months ago (2016-04-08 02:27:31 UTC) #43
reed1
4 years, 7 months ago (2016-05-06 20:30:20 UTC) #44
Message was sent while issue was closed.
Lets move that float->fixed function to be local to this .cpp

Powered by Google App Engine
This is Rietveld 408576698