DescriptionFind 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
Messages
Total messages: 16 (0 generated)
|