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

Issue 1691403002: Change SkUnitScalarClampToByte to more accurate implementation. (Closed)

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

Description

Change SkUnitScalarClampToByte to more accurate implementation. The previous implementation was likely more efficient when SkScalar was SkFixed. BUG=skia:4632 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1691403002 Committed: https://skia.googlesource.com/skia/+/f156ea3c3edf4208ebfcb7761135768a840185d0

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Change to (U8CPU)(x*255+0.5). #

Patch Set 3 : Rounding doesn't work well for GrCircleBlurFragmentProcessor. #

Total comments: 3

Patch Set 4 : Switch back to verbose form of SkScalarPin to test if it gives different results in dm. #

Patch Set 5 : Revert to Patch 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -7 lines) Patch
M include/core/SkColorPriv.h View 1 4 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 59 (29 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/1691403002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/1
4 years, 10 months ago (2016-02-12 16:17:35 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-Arm7-Debug-iOS-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-Arm7-Debug-iOS-Trybot/builds/227) Build-Mac-Clang-x86_64-Release-Trybot on ...
4 years, 10 months ago (2016-02-12 16:18:28 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/1691403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/20001
4 years, 10 months ago (2016-02-12 16:32:43 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 17:00:44 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/40001
4 years, 10 months ago (2016-02-12 17:59:52 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/60001
4 years, 10 months ago (2016-02-12 18:35:56 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/80001
4 years, 10 months ago (2016-02-12 18:46:24 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 19:13:41 UTC) #21
dogben
Similar to https://codereview.chromium.org/1693683002
4 years, 10 months ago (2016-02-12 19:47:31 UTC) #23
mtklein
lgtm
4 years, 10 months ago (2016-02-12 19:53:06 UTC) #24
reed1
How different are the results from the prev impl? Seems like we may want either ...
4 years, 10 months ago (2016-02-13 12:01:49 UTC) #26
dogben
On 2016/02/13 at 12:01:49, reed wrote: > How different are the results from the prev ...
4 years, 10 months ago (2016-02-16 20:08:51 UTC) #27
reed1
https://codereview.chromium.org/1691403002/diff/80001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/1691403002/diff/80001/include/core/SkColorPriv.h#newcode227 include/core/SkColorPriv.h:227: return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255); In nearly all ...
4 years, 10 months ago (2016-02-22 18:09:32 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/100001
4 years, 10 months ago (2016-02-22 19:42:03 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-22 20:12:54 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/1691403002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/120001
4 years, 10 months ago (2016-02-23 00:20:51 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-23 00:46:54 UTC) #37
reed1
So, is this worth-while of a change, since (now) its only used by our HSV ...
4 years, 10 months ago (2016-02-23 01:24:32 UTC) #38
mtklein
https://codereview.chromium.org/1691403002/diff/120001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/1691403002/diff/120001/include/core/SkColorPriv.h#newcode227 include/core/SkColorPriv.h:227: return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255 + 0.5); On ...
4 years, 10 months ago (2016-02-23 02:09:19 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/140001
4 years, 10 months ago (2016-02-23 16:14:09 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-23 16:39:41 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/140001
4 years, 10 months ago (2016-02-24 15:59:55 UTC) #45
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-24 16:00:51 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/160001
4 years, 10 months ago (2016-02-24 16:02:00 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-24 16:15:24 UTC) #51
dogben
On 2016/02/23 at 01:24:32, reed wrote: > So, is this worth-while of a change, since ...
4 years, 10 months ago (2016-02-24 18:04:21 UTC) #52
dogben
https://codereview.chromium.org/1691403002/diff/120001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/1691403002/diff/120001/include/core/SkColorPriv.h#newcode227 include/core/SkColorPriv.h:227: return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255 + 0.5); On ...
4 years, 10 months ago (2016-02-24 18:04:28 UTC) #53
reed1
lgtm
4 years, 10 months ago (2016-02-24 18:06:06 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691403002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691403002/160001
4 years, 10 months ago (2016-02-24 18:06:52 UTC) #57
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 18:07:56 UTC) #59
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://skia.googlesource.com/skia/+/f156ea3c3edf4208ebfcb7761135768a840185d0

Powered by Google App Engine
This is Rietveld 408576698