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

Issue 206153002: Avoid unnecessary gloweffect calls (Closed)

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

Description

Avoid unnecessary gloweffect calls When there's some overscroll in the x axis (getting us past the rounding check) and an epsilon of overscroll in the y axis due to numerical error, this later convinces OverscrollGlow to trigger the fling glow in that direction. The Rounded check only protected us against epsilons in *both* directions. Replace this with removing the epsilon explicitly in unused_scroll_delta. BUG=354325 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259729

Patch Set 1 #

Total comments: 3

Patch Set 2 : Changes done as per review comments #

Total comments: 1

Patch Set 3 : removed redundant roundedvector2d call #

Patch Set 4 : added unitest #

Total comments: 3

Patch Set 5 : updated testcase as per review comments #

Total comments: 1

Patch Set 6 : changes made for complier warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -2 lines) Patch
M AUTHORS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
MuVen
Hello, Kindly review the patch submitted and let me know your valuable comments on the ...
6 years, 9 months ago (2014-03-20 08:04:04 UTC) #1
danakj
This LG from my end. +aelias to verify this is something android team would expect/want. ...
6 years, 9 months ago (2014-03-20 17:01:30 UTC) #2
aelias_OOO_until_Jul13
I can repro the bug in content shell (not Chrome). When flinging back and forth, ...
6 years, 9 months ago (2014-03-21 00:16:11 UTC) #3
MuVen
On 2014/03/21 00:16:11, aelias wrote: > I can repro the bug in content shell (not ...
6 years, 9 months ago (2014-03-21 07:27:08 UTC) #4
aelias_OOO_until_Jul13
OK, fair enough that overscrolling while in a corner will work so my criticism wasn't ...
6 years, 9 months ago (2014-03-21 09:39:23 UTC) #5
jdduke (slow)
On 2014/03/21 09:39:23, aelias wrote: > OK, fair enough that overscrolling while in a corner ...
6 years, 9 months ago (2014-03-21 09:53:13 UTC) #6
MuVen
Hi Aelias, jdduke, Thank you for the suggestions on the proposed solution. We can conclude ...
6 years, 9 months ago (2014-03-21 10:46:07 UTC) #7
MuVen
Please take a look
6 years, 9 months ago (2014-03-21 12:54:17 UTC) #8
MuVen
Please take a look at final patch submitted. Thanks,
6 years, 9 months ago (2014-03-21 13:01:59 UTC) #9
MuVen
Please take a look at final patch submitted. Thanks,
6 years, 9 months ago (2014-03-21 13:02:00 UTC) #10
danakj
Can we add a unit test for this change that would fail without it?
6 years, 9 months ago (2014-03-21 15:57:43 UTC) #11
danakj
On Fri, Mar 21, 2014 at 11:57 AM, <danakj@chromium.org> wrote: > Can we add a ...
6 years, 9 months ago (2014-03-21 15:58:27 UTC) #12
MuVen
Hi All, As scrollby function returns wheather the scroll is done or not , if ...
6 years, 9 months ago (2014-03-24 05:26:26 UTC) #13
Sikugu_
On 2014/03/24 05:26:26, muven wrote: > Hi All, > > As scrollby function returns wheather ...
6 years, 9 months ago (2014-03-24 06:12:46 UTC) #14
MuVen
Hi All, Please find the attached cc_unittest report. [==========] 2303 tests from 473 test cases ...
6 years, 9 months ago (2014-03-24 10:34:04 UTC) #15
MuVen
ping ?
6 years, 9 months ago (2014-03-25 05:03:42 UTC) #16
aelias_OOO_until_Jul13
Dana's request was to write a new cc_unittest covering the bug just fixed.
6 years, 9 months ago (2014-03-25 05:04:52 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/206153002/diff/50001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/206153002/diff/50001/cc/trees/layer_tree_host_impl.cc#newcode2323 cc/trees/layer_tree_host_impl.cc:2323: bool did_overscroll = !gfx::ToRoundedVector2d(unused_root_delta).IsZero(); Please remove the ToRoundedVector2d call ...
6 years, 9 months ago (2014-03-25 05:08:12 UTC) #18
MuVen
On 2014/03/25 05:04:52, aelias wrote: > Dana's request was to write a new cc_unittest covering ...
6 years, 9 months ago (2014-03-25 05:09:17 UTC) #19
MuVen
As per review comments i have removed the redundant roundedvector2d call. Please take a look. ...
6 years, 9 months ago (2014-03-25 05:18:48 UTC) #20
MuVen
The CQ bit was checked by sataya.m@samsung.com
6 years, 9 months ago (2014-03-25 05:25:47 UTC) #21
MuVen
The CQ bit was unchecked by sataya.m@samsung.com
6 years, 9 months ago (2014-03-25 05:25:50 UTC) #22
aelias_OOO_until_Jul13
On 2014/03/25 05:09:17, muven wrote: > On 2014/03/25 05:04:52, aelias wrote: > > Dana's request ...
6 years, 9 months ago (2014-03-25 05:47:36 UTC) #23
MuVen
Hi, Test Case has been added. Please take a look. Thanks, muven
6 years, 9 months ago (2014-03-25 14:44:49 UTC) #24
danakj
Thanks for the test. LGTM w/ a couple comments. https://codereview.chromium.org/206153002/diff/90001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/206153002/diff/90001/cc/trees/layer_tree_host_impl_unittest.cc#newcode3166 cc/trees/layer_tree_host_impl_unittest.cc:3166: ...
6 years, 9 months ago (2014-03-25 15:36:57 UTC) #25
aelias_OOO_until_Jul13
lgtm. I updated your patch description to reflect the latest approach.
6 years, 9 months ago (2014-03-25 18:22:23 UTC) #26
MuVen
Hi danakj, aelias, I have added the proper testcase name & comments. And added changes ...
6 years, 9 months ago (2014-03-26 05:07:27 UTC) #27
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 9 months ago (2014-03-26 05:10:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/206153002/160001
6 years, 9 months ago (2014-03-26 05:10:38 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 05:44:04 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-26 05:44:04 UTC) #31
aelias_OOO_until_Jul13
https://codereview.chromium.org/206153002/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/206153002/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc#newcode3194 cc/trees/layer_tree_host_impl_unittest.cc:3194: host_impl_->ScrollBy(gfx::Point(), gfx::Vector2dF(0, -2.30)); You need to change this to ...
6 years, 9 months ago (2014-03-26 06:08:05 UTC) #32
MuVen
On 2014/03/26 06:08:05, aelias wrote: > https://codereview.chromium.org/206153002/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc > File cc/trees/layer_tree_host_impl_unittest.cc (right): > > https://codereview.chromium.org/206153002/diff/160001/cc/trees/layer_tree_host_impl_unittest.cc#newcode3194 > ...
6 years, 9 months ago (2014-03-26 06:30:14 UTC) #33
aelias_OOO_until_Jul13
OK, you can click the "Commit" button yourself after receiving lgtm.
6 years, 9 months ago (2014-03-26 06:31:35 UTC) #34
MuVen
On 2014/03/26 06:31:35, aelias wrote: > OK, you can click the "Commit" button yourself after ...
6 years, 9 months ago (2014-03-26 06:42:08 UTC) #35
MuVen
On 2014/03/26 06:31:35, aelias wrote: > OK, you can click the "Commit" button yourself after ...
6 years, 9 months ago (2014-03-26 06:42:10 UTC) #36
aelias_OOO_until_Jul13
You don't need any further approval, see the process a http://dev.chromium.org/developers/testing/commit-queue
6 years, 9 months ago (2014-03-26 06:45:16 UTC) #37
MuVen
On 2014/03/26 06:45:16, aelias wrote: > You don't need any further approval, see the process ...
6 years, 9 months ago (2014-03-26 06:50:20 UTC) #38
danakj
On Wed, Mar 26, 2014 at 2:50 AM, <sataya.m@samsung.com> wrote: > On 2014/03/26 06:45:16, aelias ...
6 years, 9 months ago (2014-03-26 13:46:10 UTC) #39
aelias_OOO_until_Jul13
The CQ bit was checked by aelias@chromium.org
6 years, 9 months ago (2014-03-26 18:06:00 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/206153002/370001
6 years, 9 months ago (2014-03-26 18:06:54 UTC) #41
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 22:44:46 UTC) #42
Message was sent while issue was closed.
Change committed as 259729

Powered by Google App Engine
This is Rietveld 408576698