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

Issue 23058003: Use SkLerpXfermode to blend LabelButton images. (Closed)

Created:
7 years, 4 months ago by msw
Modified:
7 years, 4 months ago
Reviewers:
sadrul, reed1
CC:
chromium-reviews, tfarina, bartfab (slow), benwells
Visibility:
Public.

Description

Use SkLerpXfermode to blend LabelButton images. Use SkLerpXfermode in LabelButtonBorder::Paint. This does linear interpolation between normal/hover images. Re-enable animation for BlueButton instances. BUG=239121 TEST=Button state animations on hover/unhover look right. R=reed@google.com,sadrul@chromium.org TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217629

Patch Set 1 #

Patch Set 2 : Cleanup linear interpolation via animation; etc. #

Total comments: 6

Patch Set 3 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -13 lines) Patch
M ui/views/controls/button/blue_button.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M ui/views/controls/button/blue_button.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/controls/button/label_button_border.cc View 1 2 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
msw
Hey Mike, please take a look; thanks! Sadrul, can you do a Views OWNERS review ...
7 years, 4 months ago (2013-08-13 21:51:43 UTC) #1
sadrul
LGTM, assuming the canvas related changes in label_button_border.cc looks good to reed
7 years, 4 months ago (2013-08-14 10:59:46 UTC) #2
reed1
https://codereview.chromium.org/23058003/diff/2001/ui/views/controls/button/label_button_border.cc File ui/views/controls/button/label_button_border.cc (right): https://codereview.chromium.org/23058003/diff/2001/ui/views/controls/button/label_button_border.cc#newcode125 ui/views/controls/button/label_button_border.cc:125: canvas->sk_canvas()->saveLayer(NULL, NULL); Not specific to this CL, but.. Skia ...
7 years, 4 months ago (2013-08-14 13:33:56 UTC) #3
msw
Thanks for the comments; please take another look! https://codereview.chromium.org/23058003/diff/2001/ui/views/controls/button/label_button_border.cc File ui/views/controls/button/label_button_border.cc (right): https://codereview.chromium.org/23058003/diff/2001/ui/views/controls/button/label_button_border.cc#newcode125 ui/views/controls/button/label_button_border.cc:125: canvas->sk_canvas()->saveLayer(NULL, ...
7 years, 4 months ago (2013-08-14 16:17:10 UTC) #4
reed1
7 years, 4 months ago (2013-08-14 16:26:07 UTC) #5
reed1
lgtm
7 years, 4 months ago (2013-08-14 16:26:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/23058003/28001
7 years, 4 months ago (2013-08-14 17:03:00 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 20:32:41 UTC) #8
Message was sent while issue was closed.
Change committed as 217629

Powered by Google App Engine
This is Rietveld 408576698