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

Issue 571873003: [Android]Optimization of scrollbar animation. (Closed)

Created:
6 years, 3 months ago by MuVen
Modified:
6 years, 3 months ago
CC:
bokan, cc-bugs_chromium.org, chromium-reviews, Sikugu_, vivekg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android]Optimization of scrollbar animation. Scrollbar animation is required if scrollbar parameters are changed. If any of the scrollbar parameters are changed that should trigger the scrollbar animation. If any of the scrollbar parameter is not changed, that doesn't require scrollbar animation. Current Patch ensures that scrollbar is animated only when any of the scrollbar parameter is changed. BUG=414238 Committed: https://crrev.com/68d7d9b4b8f1cb8f2924c9809f72e0aada530946 Cr-Commit-Position: refs/heads/master@{#295978}

Patch Set 1 #

Total comments: 16

Patch Set 2 : addresed review comments, using SetScrollbarNeedsAnimation #

Patch Set 3 : addressed review comments, using ResetScrollbarNeedsAnimation #

Patch Set 4 : Crashing Text case fixed #

Patch Set 5 : Adding test case for above patch #

Total comments: 8

Patch Set 6 : Addressed review comments #

Total comments: 2

Patch Set 7 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -25 lines) Patch
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 2 chunks +16 lines, -8 lines 1 comment Download
M cc/layers/scrollbar_layer_impl_base.h View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 3 4 5 1 chunk +16 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 6 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 41 (13 generated)
MuVen
6 years, 3 months ago (2014-09-15 11:47:08 UTC) #1
MuVen
PTAL. Thanks, MuVen.
6 years, 3 months ago (2014-09-15 11:51:52 UTC) #3
weiliangc
Do you have tests for this? Have you run cc_unittest with your change? https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc File ...
6 years, 3 months ago (2014-09-15 17:14:37 UTC) #5
bokan
https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc#newcode1278 cc/layers/layer_impl.cc:1278: float vertical_adjust = scrollbar_clip_layer->bounds_delta().y(); I think this should only ...
6 years, 3 months ago (2014-09-15 17:29:55 UTC) #7
MuVen
I have ran the unittest for the same , LayerTreeHostImplTest.ScrollbarLinearFadeScheduling test has failed. Working on ...
6 years, 3 months ago (2014-09-15 17:48:42 UTC) #8
MuVen
https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc#newcode1298 cc/layers/layer_impl.cc:1298: layer_tree_impl()->set_needs_update_draw_properties(); or may be can i use LayerPropertyChanged() ??
6 years, 3 months ago (2014-09-15 17:57:07 UTC) #9
danakj
https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/1/cc/layers/layer_impl.cc#newcode1298 cc/layers/layer_impl.cc:1298: layer_tree_impl()->set_needs_update_draw_properties(); On 2014/09/15 17:57:07, muven wrote: > or may ...
6 years, 3 months ago (2014-09-15 18:04:57 UTC) #10
MuVen
Hi, PTAL. There is an improvement of 1.75% of power consumption with this patch as ...
6 years, 3 months ago (2014-09-16 13:19:47 UTC) #11
weiliangc
https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc#newcode1362 cc/trees/layer_tree_host_impl_unittest.cc:1362: host_impl_->ScrollBy(gfx::Point(), gfx::Vector2dF(0, 5)); Just want to make sure, why ...
6 years, 3 months ago (2014-09-16 16:02:11 UTC) #12
MuVen
https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc#newcode1362 cc/trees/layer_tree_host_impl_unittest.cc:1362: host_impl_->ScrollBy(gfx::Point(), gfx::Vector2dF(0, 5)); Crash in the sense Expect_LT has ...
6 years, 3 months ago (2014-09-16 16:10:14 UTC) #13
weiliangc
On 2014/09/16 16:10:14, muven wrote: > https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc > File cc/trees/layer_tree_host_impl_unittest.cc (right): > > https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc#newcode1362 > ...
6 years, 3 months ago (2014-09-16 16:58:26 UTC) #14
MuVen
On 2014/09/16 16:58:26, weiliangc wrote: > On 2014/09/16 16:10:14, muven wrote: > > > https://codereview.chromium.org/571873003/diff/80001/cc/trees/layer_tree_host_impl_unittest.cc ...
6 years, 3 months ago (2014-09-16 17:00:51 UTC) #16
MuVen
may be need owners LGTM for this. @dana, PTAL. Thanks,
6 years, 3 months ago (2014-09-16 17:02:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/571873003/80001
6 years, 3 months ago (2014-09-16 17:03:10 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/11300)
6 years, 3 months ago (2014-09-16 17:16:45 UTC) #22
danakj
LGTM https://codereview.chromium.org/571873003/diff/80001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/80001/cc/layers/layer_impl.cc#newcode1296 cc/layers/layer_impl.cc:1296: if (scrollbar_animation_controller_) { move it up here: if ...
6 years, 3 months ago (2014-09-19 23:01:35 UTC) #23
danakj
Can you add a bit more to your patch description to say what this CL ...
6 years, 3 months ago (2014-09-19 23:02:16 UTC) #26
danakj
Also the BUG linked in your description doesn't seem to really be about this change, ...
6 years, 3 months ago (2014-09-19 23:15:40 UTC) #27
aelias_OOO_until_Jul13
Sorry, I just noticed this patch and I have one more change I'd like before ...
6 years, 3 months ago (2014-09-19 23:20:18 UTC) #29
danakj
https://codereview.chromium.org/571873003/diff/80001/cc/layers/scrollbar_layer_impl_base.h File cc/layers/scrollbar_layer_impl_base.h (right): https://codereview.chromium.org/571873003/diff/80001/cc/layers/scrollbar_layer_impl_base.h#newcode105 cc/layers/scrollbar_layer_impl_base.h:105: bool scrollbar_needs_animation_; On 2014/09/19 23:20:17, aelias wrote: > I ...
6 years, 3 months ago (2014-09-19 23:25:56 UTC) #30
MuVen
PTAL. https://codereview.chromium.org/571873003/diff/80001/cc/layers/scrollbar_layer_impl_base.h File cc/layers/scrollbar_layer_impl_base.h (right): https://codereview.chromium.org/571873003/diff/80001/cc/layers/scrollbar_layer_impl_base.h#newcode105 cc/layers/scrollbar_layer_impl_base.h:105: bool scrollbar_needs_animation_; On 2014/09/19 23:20:17, aelias wrote: > ...
6 years, 3 months ago (2014-09-20 08:42:01 UTC) #32
aelias_OOO_until_Jul13
https://codereview.chromium.org/571873003/diff/140001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/140001/cc/layers/layer_impl.cc#newcode1283 cc/layers/layer_impl.cc:1283: scrollbar_needs_animation = This will reset to false if any ...
6 years, 3 months ago (2014-09-22 06:53:01 UTC) #34
MuVen
PTAL. https://codereview.chromium.org/571873003/diff/140001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/140001/cc/layers/layer_impl.cc#newcode1283 cc/layers/layer_impl.cc:1283: scrollbar_needs_animation = On 2014/09/22 06:53:01, aelias wrote: > ...
6 years, 3 months ago (2014-09-22 14:02:27 UTC) #35
danakj
LGTM https://codereview.chromium.org/571873003/diff/160001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/571873003/diff/160001/cc/layers/layer_impl.cc#newcode1299 cc/layers/layer_impl.cc:1299: layer_tree_impl()->set_needs_update_draw_properties(); Maybe for a follow up, but what ...
6 years, 3 months ago (2014-09-22 14:41:25 UTC) #36
MuVen
On 2014/09/22 14:41:25, danakj wrote: > LGTM > > https://codereview.chromium.org/571873003/diff/160001/cc/layers/layer_impl.cc > File cc/layers/layer_impl.cc (right): > ...
6 years, 3 months ago (2014-09-22 14:59:25 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/571873003/160001
6 years, 3 months ago (2014-09-22 14:59:37 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:160001) as 889fb31311b701795993cb4739ce92b7c69c3c4d
6 years, 3 months ago (2014-09-22 16:02:06 UTC) #40
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 16:02:43 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/68d7d9b4b8f1cb8f2924c9809f72e0aada530946
Cr-Commit-Position: refs/heads/master@{#295978}

Powered by Google App Engine
This is Rietveld 408576698