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

Issue 665233004: Make aborted commits inform the scroll delegate. (Closed)

Created:
6 years, 1 month ago by aelias_OOO_until_Jul13
Modified:
6 years, 1 month ago
CC:
cc-bugs_chromium.org, chromium-reviews, enne (OOO)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make aborted commits inform the scroll delegate. This way of writing it was considered in https://codereview.chromium.org/19106007#msg30 but the direct scroll_delta_ was felt to be slightly cleaner and with no behavior difference unless "you had some weird stateful scroll offset delegate." Pinch viewport mode indeed introduced state inside LayerScrollOffsetDelegateProxy to buffer the values provided by the inner and outer viewports before calling the delegate, so this is now more correct. Specifically, it's now necessary to echo back to the delegate the values forced by its getter, or they may be clobbered with older values later. NOTRY=true BUG=426891 Committed: https://crrev.com/431583b93d7893784b2d5f28e80037ab9522207e Cr-Commit-Position: refs/heads/master@{#302711}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Change tests to avoid horizontal scrolling #

Patch Set 4 : Reupload after clobbering accidentally in PS3 #

Patch Set 5 : Add DCHECK #

Total comments: 4

Patch Set 6 : Add early return and update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M cc/layers/layer_impl.cc View 1 2 3 4 5 1 chunk +11 lines, -12 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 3 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 24 (3 generated)
aelias_OOO_until_Jul13
PTAL.
6 years, 1 month ago (2014-10-29 22:40:20 UTC) #2
bokan
https://codereview.chromium.org/665233004/diff/20001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/20001/cc/layers/layer_impl.cc#newcode407 cc/layers/layer_impl.cc:407: ScrollDelta() - sent_scroll_delta_); SetScrollOffsetAndDelta sets the unsent delta on ...
6 years, 1 month ago (2014-10-29 23:55:42 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/665233004/diff/20001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/20001/cc/layers/layer_impl.cc#newcode407 cc/layers/layer_impl.cc:407: ScrollDelta() - sent_scroll_delta_); On 2014/10/29 23:55:42, bokan wrote: > ...
6 years, 1 month ago (2014-10-30 01:46:55 UTC) #4
mkosiba (inactive)
lgtm
6 years, 1 month ago (2014-10-30 08:52:48 UTC) #5
bokan
Ok, perhaps we don't do impl-side painting on android webview? lgtm.
6 years, 1 month ago (2014-10-30 16:55:57 UTC) #6
danakj
On Thu, Oct 30, 2014 at 12:55 PM, <bokan@chromium.org> wrote: > Ok, perhaps we don't ...
6 years, 1 month ago (2014-10-30 16:56:55 UTC) #7
aelias_OOO_until_Jul13
Yes, WebView uses impl-side painting. I'm just making the claim that in the specific case ...
6 years, 1 month ago (2014-10-30 20:44:27 UTC) #8
danakj
On Thu, Oct 30, 2014 at 4:44 PM, <aelias@chromium.org> wrote: > Yes, WebView uses impl-side ...
6 years, 1 month ago (2014-10-30 21:00:04 UTC) #9
danakj
On Thu, Oct 30, 2014 at 4:59 PM, Dana Jansens <danakj@chromium.org> wrote: > On Thu, ...
6 years, 1 month ago (2014-10-30 21:01:13 UTC) #10
aelias_OOO_until_Jul13
I think my assumption of absence of pending tree is correct then, because impl-scrolls push ...
6 years, 1 month ago (2014-10-31 20:10:14 UTC) #11
danakj
On Fri, Oct 31, 2014 at 4:10 PM, <aelias@chromium.org> wrote: > I think my assumption ...
6 years, 1 month ago (2014-10-31 20:38:24 UTC) #12
aelias_OOO_until_Jul13
OK, I added a DCHECK. After thinking about it a bit, I think that's more ...
6 years, 1 month ago (2014-11-04 06:43:15 UTC) #13
danakj
On Tue, Nov 4, 2014 at 1:43 AM, <aelias@chromium.org> wrote: > OK, I added a ...
6 years, 1 month ago (2014-11-04 15:55:00 UTC) #14
aelias_OOO_until_Jul13
Right, I mean that many potential sequences of events might start a commit, then start ...
6 years, 1 month ago (2014-11-04 20:53:33 UTC) #15
danakj
https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc#newcode403 cc/layers/layer_impl.cc:403: // The pending tree shouldn't exist during aborted commits; ...
6 years, 1 month ago (2014-11-04 21:11:35 UTC) #16
aelias_OOO_until_Jul13
https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc#newcode403 cc/layers/layer_impl.cc:403: // The pending tree shouldn't exist during aborted commits; ...
6 years, 1 month ago (2014-11-04 21:19:16 UTC) #17
enne (OOO)
lgtm https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc#newcode405 cc/layers/layer_impl.cc:405: DCHECK(!layer_tree_impl()->FindPendingTreeLayerById(id())); Yeah, by definition there is no pending ...
6 years, 1 month ago (2014-11-04 23:31:49 UTC) #19
aelias_OOO_until_Jul13
https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/665233004/diff/80001/cc/layers/layer_impl.cc#newcode405 cc/layers/layer_impl.cc:405: DCHECK(!layer_tree_impl()->FindPendingTreeLayerById(id())); On 2014/11/04 23:31:49, enne wrote: > Yeah, by ...
6 years, 1 month ago (2014-11-04 23:35:00 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665233004/100001
6 years, 1 month ago (2014-11-04 23:44:10 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-04 23:45:42 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 23:48:06 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/431583b93d7893784b2d5f28e80037ab9522207e
Cr-Commit-Position: refs/heads/master@{#302711}

Powered by Google App Engine
This is Rietveld 408576698