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

Issue 11896017: Thread ui opacity animations (Closed)

Created:
7 years, 11 months ago by ajuma
Modified:
7 years, 10 months ago
CC:
chromium-reviews, sadrul, jonathan.backer, ben+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Thread ui opacity animations BUG=164206 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184254

Patch Set 1 #

Patch Set 2 : Correctly deal with sequences meant to start together #

Total comments: 7

Patch Set 3 : WIP #

Patch Set 4 : Address comments and add/fix tests #

Patch Set 5 : Use cc layer's opacity instead of ui::Layer::opacity_ #

Total comments: 6

Patch Set 6 : Address comments #

Total comments: 24

Patch Set 7 : Address sky's comments #

Patch Set 8 : Rebased #

Patch Set 9 : Fix windows build error #

Patch Set 10 : Ensure LayerAnimatorTests don't use a destroyed delegate #

Patch Set 11 : Fix ash_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1461 lines, -360 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M ash/rotator/screen_rotation.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/rotator/screen_rotation.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A cc/animation_id_provider.h View 1 chunk +21 lines, -0 lines 0 comments Download
A cc/animation_id_provider.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 6 chunks +11 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 12 chunks +27 lines, -8 lines 0 comments Download
M ui/compositor/layer_animation_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ui/compositor/layer_animation_element.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +56 lines, -6 lines 0 comments Download
M ui/compositor/layer_animation_element.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +198 lines, -21 lines 0 comments Download
M ui/compositor/layer_animation_element_unittest.cc View 1 2 3 4 5 6 13 chunks +62 lines, -41 lines 0 comments Download
M ui/compositor/layer_animation_sequence.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +46 lines, -2 lines 0 comments Download
M ui/compositor/layer_animation_sequence.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +69 lines, -8 lines 0 comments Download
M ui/compositor/layer_animation_sequence_unittest.cc View 1 2 3 4 5 6 7 chunks +85 lines, -32 lines 0 comments Download
M ui/compositor/layer_animator.h View 1 2 3 4 5 6 3 chunks +15 lines, -5 lines 0 comments Download
M ui/compositor/layer_animator.cc View 1 2 3 4 5 6 11 chunks +104 lines, -6 lines 0 comments Download
M ui/compositor/layer_animator_unittest.cc View 1 2 3 4 5 6 7 8 9 57 chunks +631 lines, -179 lines 0 comments Download
A ui/compositor/test/layer_animator_test_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
A ui/compositor/test/layer_animator_test_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +52 lines, -0 lines 0 comments Download
M ui/compositor/test/test_layer_animation_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/test/test_layer_animation_delegate.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
D webkit/compositor_bindings/web_animation_id_provider.h View 1 chunk +0 lines, -19 lines 0 comments Download
D webkit/compositor_bindings/web_animation_id_provider.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M webkit/compositor_bindings/web_animation_impl.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
ajuma
7 years, 11 months ago (2013-01-21 18:09:56 UTC) #1
ajuma
I've updated the patch to ensure that sequences started together with LayerAnimator::StartTogether or LayerAnimator::ScheduleTogether get ...
7 years, 11 months ago (2013-01-24 18:39:08 UTC) #2
Ian Vollick
I really like this approach. A few minor comments. https://codereview.chromium.org/11896017/diff/3001/cc/animation_id_provider.h File cc/animation_id_provider.h (right): https://codereview.chromium.org/11896017/diff/3001/cc/animation_id_provider.h#newcode19 cc/animation_id_provider.h:19: ...
7 years, 11 months ago (2013-01-25 15:11:47 UTC) #3
ajuma
Patch updated to address comments, add/fix tests, and fix some bugs uncovered by the tests. ...
7 years, 10 months ago (2013-01-29 18:31:23 UTC) #4
Ian Vollick
Can we get rid of ui::Layer::opacity_ and return the cc layer's opacity instead so that ...
7 years, 10 months ago (2013-02-01 15:21:36 UTC) #5
ajuma
On 2013/02/01 15:21:36, vollick wrote: > Can we get rid of ui::Layer::opacity_ and return the ...
7 years, 10 months ago (2013-02-04 16:06:57 UTC) #6
Ian Vollick
https://codereview.chromium.org/11896017/diff/21001/ui/compositor/layer_animation_element.h File ui/compositor/layer_animation_element.h (right): https://codereview.chromium.org/11896017/diff/21001/ui/compositor/layer_animation_element.h#newcode137 ui/compositor/layer_animation_element.h:137: void ProgressToEffectiveStart(LayerAnimationDelegate* delegate); There's a big disconnect between this ...
7 years, 10 months ago (2013-02-13 03:59:38 UTC) #7
ajuma
https://chromiumcodereview.appspot.com/11896017/diff/21001/ui/compositor/layer_animation_element.h File ui/compositor/layer_animation_element.h (right): https://chromiumcodereview.appspot.com/11896017/diff/21001/ui/compositor/layer_animation_element.h#newcode137 ui/compositor/layer_animation_element.h:137: void ProgressToEffectiveStart(LayerAnimationDelegate* delegate); On 2013/02/13 03:59:38, vollick wrote: > ...
7 years, 10 months ago (2013-02-13 23:28:18 UTC) #8
Ian Vollick
On 2013/02/13 23:28:18, ajuma wrote: > https://chromiumcodereview.appspot.com/11896017/diff/21001/ui/compositor/layer_animation_element.h > File ui/compositor/layer_animation_element.h (right): > > https://chromiumcodereview.appspot.com/11896017/diff/21001/ui/compositor/layer_animation_element.h#newcode137 > ...
7 years, 10 months ago (2013-02-14 17:53:07 UTC) #9
sky
Ian, Are you asking me to review this as well, or just my thoughts on ...
7 years, 10 months ago (2013-02-14 20:18:15 UTC) #10
Ian Vollick
I was just hoping to get your blessing on the general approach, not a detailed ...
7 years, 10 months ago (2013-02-16 01:51:27 UTC) #11
sky
This seems like a reasonable approach. Mostly just a bunch of random questions/comments. https://codereview.chromium.org/11896017/diff/37001/ui/compositor/layer.h File ...
7 years, 10 months ago (2013-02-19 17:06:56 UTC) #12
ajuma
Thanks for the review! https://codereview.chromium.org/11896017/diff/37001/ui/compositor/layer.h File ui/compositor/layer.h (right): https://codereview.chromium.org/11896017/diff/37001/ui/compositor/layer.h#newcode341 ui/compositor/layer.h:341: virtual void RemoveThreadedAnimation(int animation_id) OVERRIDE; ...
7 years, 10 months ago (2013-02-20 16:09:10 UTC) #13
sky
Thanks for integrating my comments. Since Ian did the bulk of the review I'm not ...
7 years, 10 months ago (2013-02-20 17:20:03 UTC) #14
ajuma
+enne for compositor_bindings OWNERS Note that the compositor_bindings part of this patch is actually pretty ...
7 years, 10 months ago (2013-02-20 18:05:57 UTC) #15
jamesr
webkit/compositor_bindings lgtm
7 years, 10 months ago (2013-02-20 18:42:07 UTC) #16
ajuma
Patch updated to fix a couple problems uncovered by ash_unittests. 1) Zero-duration ThreadedLayerAnimationElements weren't getting ...
7 years, 10 months ago (2013-02-21 21:19:13 UTC) #17
Ian Vollick
On 2013/02/21 21:19:13, ajuma wrote: > Patch updated to fix a couple problems uncovered by ...
7 years, 10 months ago (2013-02-22 18:44:29 UTC) #18
ajuma
sky@, PTAL at the additional change to ash/desktop_background/desktop_background_controller_unittest.cc
7 years, 10 months ago (2013-02-22 18:51:10 UTC) #19
sky
LGTM
7 years, 10 months ago (2013-02-22 20:38:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/11896017/54011
7 years, 10 months ago (2013-02-22 20:40:00 UTC) #21
commit-bot: I haz the power
7 years, 10 months ago (2013-02-23 01:54:18 UTC) #22
Message was sent while issue was closed.
Change committed as 184254

Powered by Google App Engine
This is Rietveld 408576698