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

Issue 2615613003: Fix double ripple on activated flood fill ripple (Closed)

Created:
3 years, 11 months ago by mohsen
Modified:
3 years, 11 months ago
Reviewers:
bruthig
CC:
bruthig+ink_drop_chromium.org, chromium-reviews, dcheng, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix double ripple on activated flood fill ripple When switching from pending to activated state, there is no need to do more animations as the final state of animations for these states are the same. Otherwise, janks on slow devices might create some unwanted effects like double ripples. BUG=670831 TEST=manual Review-Url: https://codereview.chromium.org/2615613003 Cr-Commit-Position: refs/heads/master@{#443366} Committed: https://chromium.googlesource.com/chromium/src/+/30c4e21c362f23e2a40c5bba0483e59c3fc672ff

Patch Set 1 #

Total comments: 2

Patch Set 2 : Used pause animation to maintain observer order #

Total comments: 4

Patch Set 3 : Added tests #

Total comments: 11

Patch Set 4 : Addressed review comments #

Patch Set 5 : Fixed InkDropHighlightTest crash #

Patch Set 6 : Used AssertionResult #

Total comments: 4

Patch Set 7 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -18 lines) Patch
M ui/views/animation/flood_fill_ink_drop_ripple.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple.cc View 1 2 4 chunks +67 lines, -12 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_highlight_unittest.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_ripple.cc View 1 2 3 2 chunks +7 lines, -5 lines 0 comments Download
M ui/views/animation/ink_drop_ripple_unittest.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M ui/views/animation/test/flood_fill_ink_drop_ripple_test_api.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/animation/test/flood_fill_ink_drop_ripple_test_api.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_animation_observer_helper.h View 1 2 3 4 5 6 3 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (29 generated)
mohsen
Please take a look...
3 years, 11 months ago (2017-01-04 22:40:12 UTC) #4
bruthig
https://codereview.chromium.org/2615613003/diff/1/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2615613003/diff/1/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode263 ui/views/animation/flood_fill_ink_drop_ripple.cc:263: if (old_ink_drop_state == InkDropState::ACTION_PENDING) { I believe this will ...
3 years, 11 months ago (2017-01-04 22:52:07 UTC) #5
mohsen
https://codereview.chromium.org/2615613003/diff/1/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2615613003/diff/1/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode263 ui/views/animation/flood_fill_ink_drop_ripple.cc:263: if (old_ink_drop_state == InkDropState::ACTION_PENDING) { On 2017/01/04 at 22:52:07, ...
3 years, 11 months ago (2017-01-05 20:14:37 UTC) #10
bruthig
Looking good, just a request for tests. https://codereview.chromium.org/2615613003/diff/20001/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2615613003/diff/20001/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode263 ui/views/animation/flood_fill_ink_drop_ripple.cc:263: // The ...
3 years, 11 months ago (2017-01-05 20:20:39 UTC) #11
mohsen
https://codereview.chromium.org/2615613003/diff/20001/ui/views/animation/flood_fill_ink_drop_ripple.cc File ui/views/animation/flood_fill_ink_drop_ripple.cc (right): https://codereview.chromium.org/2615613003/diff/20001/ui/views/animation/flood_fill_ink_drop_ripple.cc#newcode263 ui/views/animation/flood_fill_ink_drop_ripple.cc:263: // The final state of pending animation is the ...
3 years, 11 months ago (2017-01-06 19:48:06 UTC) #16
bruthig
Sorry I forgot about this yesterday. Looking pretty good, just some nits and one question ...
3 years, 11 months ago (2017-01-10 17:08:03 UTC) #19
mohsen
https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc File ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc (right): https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc#newcode85 ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc:85: ripple.set_observer(&observer); On 2017/01/10 at 17:08:03, bruthig wrote: > nit: ...
3 years, 11 months ago (2017-01-10 22:28:16 UTC) #20
bruthig
https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc File ui/views/animation/ink_drop_ripple_unittest.cc (right): https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc#newcode382 ui/views/animation/ink_drop_ripple_unittest.cc:382: "ACTION_PENDING ACTIVATED", On 2017/01/10 22:28:16, mohsen wrote: > On ...
3 years, 11 months ago (2017-01-11 00:41:07 UTC) #25
mohsen
https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc File ui/views/animation/ink_drop_ripple_unittest.cc (right): https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc#newcode382 ui/views/animation/ink_drop_ripple_unittest.cc:382: "ACTION_PENDING ACTIVATED", On 2017/01/11 at 00:41:07, bruthig wrote: > ...
3 years, 11 months ago (2017-01-11 15:59:44 UTC) #26
bruthig
3 years, 11 months ago (2017-01-11 18:07:00 UTC) #27
bruthig
lgtm https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc File ui/views/animation/ink_drop_ripple_unittest.cc (right): https://codereview.chromium.org/2615613003/diff/40001/ui/views/animation/ink_drop_ripple_unittest.cc#newcode382 ui/views/animation/ink_drop_ripple_unittest.cc:382: "ACTION_PENDING ACTIVATED", On 2017/01/11 15:59:44, mohsen wrote: > ...
3 years, 11 months ago (2017-01-11 18:22:30 UTC) #28
mohsen
bruthig@, I've changed the code to use AssertionResult. Can you take another look, please?
3 years, 11 months ago (2017-01-11 22:26:51 UTC) #35
bruthig
slgtm Thanks for adding the AssertionResult! https://codereview.chromium.org/2615613003/diff/100001/ui/views/animation/test/test_ink_drop_animation_observer_helper.h File ui/views/animation/test/test_ink_drop_animation_observer_helper.h (right): https://codereview.chromium.org/2615613003/diff/100001/ui/views/animation/test/test_ink_drop_animation_observer_helper.h#newcode117 ui/views/animation/test/test_ink_drop_animation_observer_helper.h:117: testing::AssertionResult AnimationStartedContextsMatches( nit: ...
3 years, 11 months ago (2017-01-11 23:18:04 UTC) #36
mohsen
https://codereview.chromium.org/2615613003/diff/100001/ui/views/animation/test/test_ink_drop_animation_observer_helper.h File ui/views/animation/test/test_ink_drop_animation_observer_helper.h (right): https://codereview.chromium.org/2615613003/diff/100001/ui/views/animation/test/test_ink_drop_animation_observer_helper.h#newcode117 ui/views/animation/test/test_ink_drop_animation_observer_helper.h:117: testing::AssertionResult AnimationStartedContextsMatches( On 2017/01/11 at 23:18:04, bruthig wrote: > ...
3 years, 11 months ago (2017-01-12 19:31:57 UTC) #39
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/2615613003/120001
3 years, 11 months ago (2017-01-12 19:32:33 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 21:31:19 UTC) #45
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/30c4e21c362f23e2a40c5bba0483...

Powered by Google App Engine
This is Rietveld 408576698