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

Issue 408833002: StartAnimation: Optimized the search for Animations which is waiting for TargetAvailability (Closed)

Created:
6 years, 5 months ago by shreyas.g
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Optimize search in LayerAnimationController::StartAnimations During StartAnimation first it does a search for all animations which are running and starting. After that it again searches the entire animation list for animations waiting for target availability. This patch reduces this search (for loops) by keeping track of the animations waiting for target availability in the first search itself. BUG=396562 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285561

Patch Set 1 #

Total comments: 4

Patch Set 2 : StartAnimation: Optimized the search for Animations which is waiting for TargetAvailability #

Patch Set 3 : Replaced the Hash map with Vector of Animation/index pair #

Patch Set 4 : Replaced animation/index pair with just index (without push_back) #

Total comments: 12

Patch Set 5 : Replaced resize vector with reserve #

Total comments: 2

Patch Set 6 : Added small nit change and updated description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -11 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 1 2 3 4 5 3 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
shreyas.g
PTAL. Thanks
6 years, 5 months ago (2014-07-21 11:01:57 UTC) #1
shreyas.g
ajuma@chromium.org: Please review the changes. Thanks
6 years, 5 months ago (2014-07-21 12:04:23 UTC) #2
vivekg
https://codereview.chromium.org/408833002/diff/1/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/408833002/diff/1/cc/animation/layer_animation_controller.cc#newcode605 cc/animation/layer_animation_controller.cc:605: AnimationMap waitingfor_target_animations_; nit: waitingfor_target_animations_ => animations_waiting_for_target https://codereview.chromium.org/408833002/diff/1/cc/animation/layer_animation_controller.h File cc/animation/layer_animation_controller.h ...
6 years, 5 months ago (2014-07-21 12:39:33 UTC) #3
shreyas.g
Made changes based on Viveks comments. Thanks. https://codereview.chromium.org/408833002/diff/1/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/408833002/diff/1/cc/animation/layer_animation_controller.cc#newcode605 cc/animation/layer_animation_controller.cc:605: AnimationMap waitingfor_target_animations_; ...
6 years, 5 months ago (2014-07-21 13:00:37 UTC) #4
kishorags_
A bug capturing the data on improvement can be helpful for reviewers. Thanks
6 years, 5 months ago (2014-07-21 13:53:39 UTC) #5
ajuma
Thanks for looking into this. On 2014/07/21 13:53:39, kishorags_ wrote: > A bug capturing the ...
6 years, 5 months ago (2014-07-21 14:22:19 UTC) #6
shreyas.g
On 2014/07/21 14:22:19, ajuma wrote: > Thanks for looking into this. > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 14:46:22 UTC) #7
ajuma
On 2014/07/21 14:46:22, shreyas.g wrote: > On 2014/07/21 14:22:19, ajuma wrote: > > Thanks for ...
6 years, 5 months ago (2014-07-21 15:09:06 UTC) #8
shreyas.g
On 2014/07/21 15:09:06, ajuma wrote: > On 2014/07/21 14:46:22, shreyas.g wrote: > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-23 05:33:41 UTC) #9
shreyas.g
Please take a look at site http://codepen.io/keithclark/pen/dlhJm?editors=010 In this there is a queing of animations ...
6 years, 5 months ago (2014-07-23 09:43:53 UTC) #10
shreyas.g
PTAL at patchset 4. With this I see improvement in cases where all animations are ...
6 years, 5 months ago (2014-07-23 13:01:46 UTC) #11
ajuma
Thanks for the investigation, this is looking much improved. https://codereview.chromium.org/408833002/diff/60001/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/408833002/diff/60001/cc/animation/layer_animation_controller.cc#newcode605 cc/animation/layer_animation_controller.cc:605: ...
6 years, 5 months ago (2014-07-23 16:02:18 UTC) #12
shreyas.g
Thanks Ajuma for doing the review and providing inputs. PTAL at patchset 5 I have ...
6 years, 5 months ago (2014-07-24 10:03:35 UTC) #13
shreyas.g
https://codereview.chromium.org/408833002/diff/60001/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/408833002/diff/60001/cc/animation/layer_animation_controller.cc#newcode605 cc/animation/layer_animation_controller.cc:605: std::vector<size_t> animations_waiting_for_target_index_; On 2014/07/23 16:02:18, ajuma wrote: > Calling ...
6 years, 5 months ago (2014-07-24 10:03:50 UTC) #14
ajuma
Please update the description so the first line is a short summary (e.g. "cc: Optimize ...
6 years, 5 months ago (2014-07-24 14:51:07 UTC) #15
shreyas.g
Added description and small nit change https://codereview.chromium.org/408833002/diff/80001/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/408833002/diff/80001/cc/animation/layer_animation_controller.cc#newcode632 cc/animation/layer_animation_controller.cc:632: // previous animation ...
6 years, 5 months ago (2014-07-24 15:08:16 UTC) #16
ajuma
Thanks, lgtm.
6 years, 5 months ago (2014-07-24 15:09:29 UTC) #17
shreyas.g
The CQ bit was checked by shreyas.g@samsung.com
6 years, 5 months ago (2014-07-25 06:37:00 UTC) #18
shreyas.g
The CQ bit was unchecked by shreyas.g@samsung.com
6 years, 5 months ago (2014-07-25 06:37:14 UTC) #19
shreyas.g
The CQ bit was checked by shreyas.g@samsung.com
6 years, 5 months ago (2014-07-25 06:37:19 UTC) #20
shreyas.g
The CQ bit was unchecked by shreyas.g@samsung.com
6 years, 5 months ago (2014-07-25 06:37:19 UTC) #21
shreyas.g
The CQ bit was checked by shreyas.g@samsung.com
6 years, 5 months ago (2014-07-25 06:37:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shreyas.g@samsung.com/408833002/100001
6 years, 5 months ago (2014-07-25 06:39:13 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 10:54:54 UTC) #24
Message was sent while issue was closed.
Change committed as 285561

Powered by Google App Engine
This is Rietveld 408576698