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

Issue 11348381: cc: Always commit and redraw after scrolling (Closed)

Created:
8 years ago by Sami
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org, trchen, klobag.chromium
Visibility:
Public.

Description

cc: Always commit and redraw after scrolling During the move from WebKit::IntSize to gfx::Vector2d in the compositor code an IntSize::isEmpty() got accidentally replaced with Vector2d::IsZero() in LayerTreeHostImpl::scrollBy(). This caused cases where we'd change the position of a layer during scrolling but didn't schedule a commit or a redraw. This happened for instance when diagonally scrolling a layer against its edge. This patch fixes the issue by always requesting a commit/redraw if any layer was moved while applying the scroll delta. TEST=LayerTreeHostImplTest.scrollByReturnsCorrectValue Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171069

Patch Set 1 #

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

Messages

Total messages: 5 (0 generated)
Sami
8 years ago (2012-12-04 18:25:21 UTC) #1
danakj
LGTM and thanks for the test
8 years ago (2012-12-04 18:30:17 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/11348381/1
8 years ago (2012-12-04 19:07:32 UTC) #3
commit-bot: I haz the power
Change committed as 171069
8 years ago (2012-12-04 22:47:11 UTC) #4
bulach
8 years ago (2012-12-06 20:44:52 UTC) #5
Message was sent while issue was closed.
klobag / tchen fyi

Powered by Google App Engine
This is Rietveld 408576698