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

Issue 12025031: Find root scroll layer at tree activation (Closed)

Created:
7 years, 11 months ago by jamesr
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, Ted C
Visibility:
Public.

Description

Find root scroll layer at tree activation This finds the root scroll layer when a LayerTreeImpl is activated since we can only interact with the active tree. Doing this allows adding more checks for proper use and cuts down on the number of functions that have to be called in a specific order. I've also tightened up the TopControlsManagerClient interface, since previously the interface defined "virtual LayerTreeImpl* activeTree()" but LayerTreeHostImpl also defined a non-virtual "const LayerTreeImpl* activeTree() const" so depending on the constness of a pointer callers would get one or the other. Turns out the top controls system doesn't need the active tree, it just needs the root scroll layer. It actually doesn't even need the full layer, it just needs to know if there is a layer and if so what the y offset is. BUG=169143 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177847

Patch Set 1 #

Total comments: 3

Patch Set 2 : bool / float getters on TopControlsManagerClient #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -64 lines) Patch
M cc/layer_tree_host.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 4 chunks +13 lines, -8 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 11 chunks +15 lines, -14 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 6 chunks +20 lines, -9 lines 1 comment Download
M cc/picture_layer_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/top_controls_manager.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/top_controls_manager.cc View 1 3 chunks +3 lines, -11 lines 0 comments Download
M cc/top_controls_manager_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/top_controls_manager_unittest.cc View 1 2 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
jamesr
7 years, 11 months ago (2013-01-18 21:43:09 UTC) #1
jamesr
https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h File cc/top_controls_manager_client.h (right): https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h#newcode16 cc/top_controls_manager_client.h:16: virtual LayerImpl* rootScrollLayer() const = 0; hmmmm - this ...
7 years, 11 months ago (2013-01-18 21:45:19 UTC) #2
enne (OOO)
https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h File cc/top_controls_manager_client.h (right): https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h#newcode16 cc/top_controls_manager_client.h:16: virtual LayerImpl* rootScrollLayer() const = 0; On 2013/01/18 21:45:19, ...
7 years, 11 months ago (2013-01-18 21:47:29 UTC) #3
jamesr
On 2013/01/18 21:47:29, enne wrote: > https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h > File cc/top_controls_manager_client.h (right): > > https://codereview.chromium.org/12025031/diff/1/cc/top_controls_manager_client.h#newcode16 > ...
7 years, 11 months ago (2013-01-18 21:48:14 UTC) #4
enne (OOO)
https://codereview.chromium.org/12025031/diff/1/cc/layer_tree_host.cc File cc/layer_tree_host.cc (left): https://codereview.chromium.org/12025031/diff/1/cc/layer_tree_host.cc#oldcode284 cc/layer_tree_host.cc:284: syncTree->FindRootScrollLayer(); Ooh, this is nice to see.
7 years, 11 months ago (2013-01-18 21:57:01 UTC) #5
jamesr
TopControlsManagerClient changes weren't so bad, PTAL
7 years, 11 months ago (2013-01-18 21:58:27 UTC) #6
Ted C
lgtm for top controls changes
7 years, 11 months ago (2013-01-18 22:00:37 UTC) #7
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-18 22:01:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/12025031/8001
7 years, 11 months ago (2013-01-18 22:02:28 UTC) #9
jamesr
Hmmm....this appears to break the non-css transform pinch zoom path
7 years, 11 months ago (2013-01-18 23:53:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/12025031/3003
7 years, 11 months ago (2013-01-19 02:23:46 UTC) #11
commit-bot: I haz the power
Change committed as 177847
7 years, 11 months ago (2013-01-19 04:58:03 UTC) #12
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/12025031/diff/3003/cc/layer_tree_impl.cc File cc/layer_tree_impl.cc (right): https://chromiumcodereview.appspot.com/12025031/diff/3003/cc/layer_tree_impl.cc#newcode193 cc/layer_tree_impl.cc:193: return root_scroll_layer_->bounds(); FYI, looks like this broke scrolling. I ...
7 years, 11 months ago (2013-01-21 01:12:14 UTC) #13
enne (OOO)
Does the version you're testing on include http://trac.webkit.org/changeset/139385?
7 years, 11 months ago (2013-01-21 01:15:51 UTC) #14
aelias_OOO_until_Jul13
Ah, I was wondering how that change made sense, thanks for pointing me to that. ...
7 years, 11 months ago (2013-01-21 01:22:50 UTC) #15
aelias_OOO_until_Jul13
7 years, 11 months ago (2013-01-21 01:53:11 UTC) #16
Message was sent while issue was closed.
OK, filed http://crbug.com/171188 and created to
https://codereview.chromium.org/12034003/ to revert this part.

Powered by Google App Engine
This is Rietveld 408576698