Move policy handling into ATM hierarchy [2/n]
Start removing concept of "insetBounds". This is an important step in moving policy into the hierarchy since it represents a codepath that resolves configuration with more data than what is in the hierarchy (passing in 2-3 sets of bounds instead of 1). In theory, we shouldn't need this as the extra bounds are only used during transitionary periods (animation/interactive dragging). Previously, we set the whole hierarchy to have the "displayed" bounds and then fed in "insetBounds" to be used for the actual configuration update. This is a backwards abstraction and a little wasteful since what we actually want to do is prevent the configuration from updating and change only how/where the eventual window is displayed. This CL is a first step which introduces mDisplayedBounds to represent the Task's bounds during transient periods. This way we can leave the hierarchy in a steady state and use the displayed bounds to move it around on screen. These displayedBounds are then used to position the surface and the computed frame so that we aren't recalculating the hierarchy (and passing "inset" bounds around) for transient operations. Bug: 113900640 Bug: 119687367 Test: go/wm-smoke and wmtests/servicestests Change-Id: Ia70d3e260e9ed6e2c2c8c19920025fd10fab9e17
Loading
Please register or sign in to comment