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

Issue 238753004: Vertical GlowEffect shown on about:blank page in low end devices (Closed)

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

Description

GlowEffect is suppressed when the scrolling is not possible on that particular axes. In the about:blank Page horizontal and vertical scrolling is impossible, so Horizontal and Vertical Glow effect is not shown in the high end devices. But in the low end devices with device_scale_factor = 1.5 scaled_scroll_bounds in LayerImpl::MaxScrollOffset has decimal fraction because of device_scale_factor due to which max_offset is non-zero, which fails the below condition in LayerTreeHostImpl::ScrollBy function and this triggers the GlowEffect.ToFlooredSize of scaled_scroll_bounds solves the issue. if (std::abs(active_tree_->TotalMaxScrollOffset().x()) <= kEpsilon) unused_root_delta.set_x(0.0f); if (std::abs(active_tree_->TotalMaxScrollOffset().y()) <= kEpsilon) unused_root_delta.set_y(0.0f); BUG=363527 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265188

Patch Set 1 #

Total comments: 1

Patch Set 2 : added unittest #

Total comments: 1

Patch Set 3 : Renamed Unittest Name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M cc/layers/layer_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
MuVen
PTAL
6 years, 8 months ago (2014-04-15 08:55:41 UTC) #1
aelias_OOO_until_Jul13
Could you write a test for this? https://codereview.chromium.org/238753004/diff/1/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/238753004/diff/1/cc/layers/layer_impl.cc#newcode1204 cc/layers/layer_impl.cc:1204: return gfx::ToFlooredVector2d(max_offset); ...
6 years, 8 months ago (2014-04-16 22:25:43 UTC) #2
MuVen
Added unitest case. PTAL. ToFlooredSize(scaled_scroll_bounds) this solves the issue. as device scale factor is 1.5 ...
6 years, 8 months ago (2014-04-21 05:35:27 UTC) #3
MuVen
I think gfx::ToFlooredVector2d(max_offset) is needed as we are going to scale the max_offset which is ...
6 years, 8 months ago (2014-04-21 11:59:21 UTC) #4
aelias_OOO_until_Jul13
OK, lgtm. https://codereview.chromium.org/238753004/diff/40001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/238753004/diff/40001/cc/trees/layer_tree_host_impl_unittest.cc#newcode3175 cc/trees/layer_tree_host_impl_unittest.cc:3175: TEST_F(LayerTreeHostImplTest, NoOverscrollOnLowEndDevice) { Please rename to "NoOverscrollOnFractionalDeviceScale".
6 years, 8 months ago (2014-04-22 02:09:46 UTC) #5
MuVen
The CQ bit was checked by sataya.m@samsung.com
6 years, 8 months ago (2014-04-22 03:00:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/238753004/60001
6 years, 8 months ago (2014-04-22 03:00:52 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 05:53:41 UTC) #8
Message was sent while issue was closed.
Change committed as 265188

Powered by Google App Engine
This is Rietveld 408576698