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

Issue 2358803007: Refactor LabelButtonAssetBorder to avoid SkArithmeticMode (Closed)

Created:
4 years, 3 months ago by f(malita)
Modified:
4 years, 2 months ago
Reviewers:
msw, sky, reed1
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor LabelButtonAssetBorder to avoid SkArithmeticMode SkArithmeticMode is being deprecated in Skia. The current arithmetic transfer function interpolates linearly between foreground/background: FG * k + BG * (1 - k) An equivalent effect can be attained using alpha modulation and kPlus blending: kPlus(FG * alpha, BG * (1 - alpha)) == FG * alpha + BG * (1 - alpha) R=reed@google.com, msw@chromium.org Committed: https://crrev.com/abcc4813b5e92a1c25bac7071b77393a5387860f Cr-Commit-Position: refs/heads/master@{#421887}

Patch Set 1 #

Patch Set 2 : fix sktou8 warning #

Patch Set 3 : use kPlus xfermode #

Total comments: 4

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M ui/views/controls/button/label_button_border.cc View 1 2 3 1 chunk +16 lines, -8 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
f(malita)
4 years, 3 months ago (2016-09-23 13:39:40 UTC) #3
f(malita)
I think this will yield different results if the source is not opaque. Not sure ...
4 years, 3 months ago (2016-09-23 13:48:44 UTC) #8
f(malita)
On 2016/09/23 13:48:44, f(malita) wrote: > I think this will yield different results if the ...
4 years, 3 months ago (2016-09-23 16:12:57 UTC) #12
f(malita)
On 2016/09/23 16:12:57, f(malita) wrote: > On 2016/09/23 13:48:44, f(malita) wrote: > > I think ...
4 years, 2 months ago (2016-09-27 20:52:48 UTC) #18
reed1
lgtm
4 years, 2 months ago (2016-09-29 00:42:36 UTC) #21
msw
lgtm, thanks!
4 years, 2 months ago (2016-09-29 00:46:40 UTC) #22
f(malita)
Since I could only do some limited testing for this change, Mike suggested I should ...
4 years, 2 months ago (2016-09-29 03:38:49 UTC) #23
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/2358803007/40001
4 years, 2 months ago (2016-09-29 03:41:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/269271)
4 years, 2 months ago (2016-09-29 03:49:54 UTC) #27
f(malita)
On 2016/09/29 03:49:54, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 2 months ago (2016-09-29 12:38:14 UTC) #29
sky
https://codereview.chromium.org/2358803007/diff/40001/ui/views/controls/button/label_button_border.cc File ui/views/controls/button/label_button_border.cc (right): https://codereview.chromium.org/2358803007/diff/40001/ui/views/controls/button/label_button_border.cc#newcode143 ui/views/controls/button/label_button_border.cc:143: SkToU8(SkScalarRoundToInt(0xff * animation->GetCurrentValue())); CurrentValueBetween(0, 255)? https://codereview.chromium.org/2358803007/diff/40001/ui/views/controls/button/label_button_border.cc#newcode152 ui/views/controls/button/label_button_border.cc:152: canvas->sk_canvas()->restore(); All ...
4 years, 2 months ago (2016-09-29 16:05:17 UTC) #30
f(malita)
https://codereview.chromium.org/2358803007/diff/40001/ui/views/controls/button/label_button_border.cc File ui/views/controls/button/label_button_border.cc (right): https://codereview.chromium.org/2358803007/diff/40001/ui/views/controls/button/label_button_border.cc#newcode143 ui/views/controls/button/label_button_border.cc:143: SkToU8(SkScalarRoundToInt(0xff * animation->GetCurrentValue())); On 2016/09/29 16:05:17, sky wrote: > ...
4 years, 2 months ago (2016-09-29 16:35:28 UTC) #33
sky
LGTM
4 years, 2 months ago (2016-09-29 18:19:22 UTC) #36
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/2358803007/60001
4 years, 2 months ago (2016-09-29 18:44:41 UTC) #39
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-29 18:50:25 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 18:54:04 UTC) #43
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/abcc4813b5e92a1c25bac7071b77393a5387860f
Cr-Commit-Position: refs/heads/master@{#421887}

Powered by Google App Engine
This is Rietveld 408576698