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

Issue 230223006: Move nonscrollable axis gloweffect suppression to renderer. (Closed)

Created:
6 years, 8 months ago by MuVen
Modified:
6 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move nonscrollable axis gloweffect suppression to renderer. on nonscrollable axis gloweffect should not be invoked, on diagonal scroll in some cases horizontal axis is disabled, and when scrolling diagonally this invokes horizontal glow , but as per android UX horizontal glow shouldnt be display as it is nonscrollable. This change optimizes such calls and avoids unnecessary IPC calls. The change is behind a CC setting since Android WebView needs to send overscroll notifications to apps even on nonscrollable axes. BUG=357021 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263226

Patch Set 1 #

Total comments: 5

Patch Set 2 : changes done after review comments #

Total comments: 3

Patch Set 3 : clean up and modified as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -30 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/overscroll_glow.h View 1 2 2 chunks +0 lines, -10 lines 0 comments Download
M content/browser/android/overscroll_glow.cc View 1 2 2 chunks +1 line, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
MuVen
PTAL I have written the code base on following table. I have taken the values ...
6 years, 8 months ago (2014-04-09 13:57:08 UTC) #1
MuVen
DIRECTION unused_root_delta did_scroll_x did_scroll_y TOPGLOW 0, < 0 EX:(0, -10) 0 0 BOTTOMGLOW 0, > ...
6 years, 8 months ago (2014-04-09 15:52:19 UTC) #2
MuVen
DIRECTION unused_root_delta did_scroll_x did_scroll_y TOPGLOW 0, < 0 EX:(0, -10) 0 0 BOTTOMGLOW 0, > ...
6 years, 8 months ago (2014-04-09 15:53:07 UTC) #3
MuVen
+jdduke
6 years, 8 months ago (2014-04-09 16:05:09 UTC) #4
jdduke (slow)
https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2370 cc/trees/layer_tree_host_impl.cc:2370: if (!settings_.using_synchronous_renderer_compositor) { I don't think we want to ...
6 years, 8 months ago (2014-04-09 17:35:00 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2370 cc/trees/layer_tree_host_impl.cc:2370: if (!settings_.using_synchronous_renderer_compositor) { On 2014/04/09 17:35:00, jdduke wrote: > ...
6 years, 8 months ago (2014-04-09 19:43:42 UTC) #6
jdduke (slow)
https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/230223006/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2312 cc/trees/layer_tree_host_impl.cc:2312: if (std::abs(unused_root_delta.x()) < kEpsilon) It might make sense for ...
6 years, 8 months ago (2014-04-09 22:51:47 UTC) #7
MuVen
Hi Jdduke, we can implement in this way and i guess we dont need any ...
6 years, 8 months ago (2014-04-10 03:49:40 UTC) #8
MuVen
PTAL.
6 years, 8 months ago (2014-04-10 04:54:23 UTC) #9
jdduke (slow)
https://codereview.chromium.org/230223006/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/230223006/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2318 cc/trees/layer_tree_host_impl.cc:2318: gfx::SizeF ceiled_viewport_size = You shouldn't need to check both ...
6 years, 8 months ago (2014-04-10 14:16:02 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/230223006/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/230223006/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode2322 cc/trees/layer_tree_host_impl.cc:2322: if (std::abs(InnerViewportScrollLayer()->MaxScrollOffset().x()) <= 0) Please also check OuterViewportScrollLayer as ...
6 years, 8 months ago (2014-04-10 16:28:36 UTC) #11
MuVen
Hi jdduke, i have one recommendation on this patch to avoid dependency on kEpsilon. const ...
6 years, 8 months ago (2014-04-10 16:31:36 UTC) #12
aelias_OOO_until_Jul13
On 2014/04/10 16:31:36, muven wrote: > Hi jdduke, > > i have one recommendation on ...
6 years, 8 months ago (2014-04-10 17:50:50 UTC) #13
MuVen
As mentioned by jdduke, he has recommended to use active_tree_->TotalMaxScrollOffset() ; Logic is not related ...
6 years, 8 months ago (2014-04-11 03:31:25 UTC) #14
aelias_OOO_until_Jul13
On 2014/04/11 03:31:25, muven wrote: > As mentioned by jdduke, he has recommended to use ...
6 years, 8 months ago (2014-04-11 03:35:12 UTC) #15
MuVen
PTAL, update as per review comments.
6 years, 8 months ago (2014-04-11 04:04:10 UTC) #16
aelias_OOO_until_Jul13
lgtm
6 years, 8 months ago (2014-04-11 07:01:49 UTC) #17
MuVen
The CQ bit was checked by sataya.m@samsung.com
6 years, 8 months ago (2014-04-11 07:04:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/230223006/40001
6 years, 8 months ago (2014-04-11 07:04:33 UTC) #19
aelias_OOO_until_Jul13
Adding piman@ for content/renderer/gpu OWNERS rubberstamp. I also updated your patch description. In the future, ...
6 years, 8 months ago (2014-04-11 07:10:34 UTC) #20
piman
lgtm
6 years, 8 months ago (2014-04-11 07:36:03 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 08:23:28 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=60899
6 years, 8 months ago (2014-04-11 08:23:28 UTC) #23
MuVen
The CQ bit was checked by sataya.m@samsung.com
6 years, 8 months ago (2014-04-11 08:27:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/230223006/40001
6 years, 8 months ago (2014-04-11 08:27:06 UTC) #25
MuVen
The CQ bit was unchecked by sataya.m@samsung.com
6 years, 8 months ago (2014-04-11 11:04:52 UTC) #26
MuVen
The CQ bit was checked by sataya.m@samsung.com
6 years, 8 months ago (2014-04-11 11:04:53 UTC) #27
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 13:42:13 UTC) #28
Message was sent while issue was closed.
Change committed as 263226

Powered by Google App Engine
This is Rietveld 408576698