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

Issue 18187004: Don't update graphics layer positions during coordinated scrolling (Closed)

Created:
7 years, 5 months ago by enne (OOO)
Modified:
7 years, 5 months ago
Reviewers:
jamesr
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, Ian Vollick
Visibility:
Public.

Description

Don't update graphics layer positions during coordinated scrolling As the scroll offset for the Layer already entirely captures all of the information for the scroll, don't update positions if the scroll offset is going to be set. This makes any scrollable layer be in one of two states: (1) It is managed by the ScrollingCoordinator and can be scrolled on the compositor thread. The ScrollingCoordinator updates the scroll position on the platform layer directly. (2) It is not managed by the ScrollingCoordinator and can not be scrolled on the compositor thread. It just has the position on the given GraphicsLayer moved around. This is step 2 of a 3 step patch to disentangle Layer positions and scroll offsets. The #ifdef in this patch is turned on here: https://codereview.chromium.org/18400003 R=jamesr@chromium.org BUG=256381 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153910

Patch Set 1 #

Patch Set 2 : Handle overflow divs #

Patch Set 3 : ifdefs, expectations, rtl fixes #

Total comments: 5

Patch Set 4 : Rebase #

Patch Set 5 : iff #

Patch Set 6 : Set define in core.gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -12 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/core.gyp View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerBacking.cpp View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 2 chunks +17 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
enne (OOO)
7 years, 5 months ago (2013-07-03 19:58:00 UTC) #1
jamesr
Can you help me understand this sentence: > This makes any scrollable layer be in ...
7 years, 5 months ago (2013-07-03 22:11:38 UTC) #2
enne (OOO)
On 2013/07/03 22:11:38, jamesr wrote: > Can you help me understand this sentence: > > ...
7 years, 5 months ago (2013-07-03 22:18:29 UTC) #3
enne (OOO)
Ok, here's one reason for that distinction: GraphicsLayers don't have a scroll offset, but WebLayers ...
7 years, 5 months ago (2013-07-03 23:45:09 UTC) #4
jamesr
lgtm ok, that makes sense
7 years, 5 months ago (2013-07-04 00:34:00 UTC) #5
enne (OOO)
On 2013/07/04 00:34:00, jamesr wrote: > lgtm After some more local testing and a comment ...
7 years, 5 months ago (2013-07-08 20:29:21 UTC) #6
jamesr
yup, makes sense! lgtm
7 years, 5 months ago (2013-07-08 20:32:15 UTC) #7
enne (OOO)
Ok, third time's a charm. Issue #1: RTL layers still need position set to the ...
7 years, 5 months ago (2013-07-09 23:22:58 UTC) #8
jamesr
Where are the gyp changes? As far as I know, you can't directly set a ...
7 years, 5 months ago (2013-07-09 23:39:38 UTC) #9
enne (OOO)
https://codereview.chromium.org/18187004/diff/16001/Source/core/page/scrolling/ScrollingCoordinator.h File Source/core/page/scrolling/ScrollingCoordinator.h (right): https://codereview.chromium.org/18187004/diff/16001/Source/core/page/scrolling/ScrollingCoordinator.h#newcode93 Source/core/page/scrolling/ScrollingCoordinator.h:93: // Returns true iff the coordinator handled this change. ...
7 years, 5 months ago (2013-07-09 23:43:47 UTC) #10
jamesr
On 2013/07/09 23:43:47, enne wrote: > https://codereview.chromium.org/18187004/diff/16001/Source/core/page/scrolling/ScrollingCoordinator.h > File Source/core/page/scrolling/ScrollingCoordinator.h (right): > > https://codereview.chromium.org/18187004/diff/16001/Source/core/page/scrolling/ScrollingCoordinator.h#newcode93 > ...
7 years, 5 months ago (2013-07-09 23:47:29 UTC) #11
enne (OOO)
Added a define in core.gyp for the webcore_rendering target. PTAL.
7 years, 5 months ago (2013-07-10 00:41:23 UTC) #12
jamesr
lgtm
7 years, 5 months ago (2013-07-10 04:09:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/18187004/32001
7 years, 5 months ago (2013-07-10 16:03:32 UTC) #14
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 17:32:54 UTC) #15
Message was sent while issue was closed.
Change committed as 153910

Powered by Google App Engine
This is Rietveld 408576698