Description[Root Layer Scrolls] Fix touch event rect clearing.
When RLS is enabled, the code that clears out obsolete touch event
rects can miss clearing rects on the root layer's main graphics
layer backing if something caused the root layer to overflow.
Here's the scenario:
- Frame does not overflow.
- Touch event handler is registered.
- ScrollingCoordinator annotates touch event rects to the root layer's
graphicsLayerBacking, which is its main graphics layer backing,
because it doesn't overflow.
- Something is added to make the frame overflow.
- Touch event rects are removed from the root layer's
graphicsLayerBacking, which is now the scrolling content layer.
The main graphics layer backing, which has a touch event rect from
the previous frame, is not modified, so keeps its old touch event
rect.
This patch ensures that touch rects are cleared on both the main
graphics layer and the scrolling contents layer.
BUG=490942
R=skobes@chromium.org
TEST=FrameThrottlingTest with RLS enabled
Review-Url: https://codereview.chromium.org/2664083005
Cr-Commit-Position: refs/heads/master@{#448362}
Committed: https://chromium.googlesource.com/chromium/src/+/1af92770ce1315465a635bb797dd501b97d883bc
Patch Set 1 #
Total comments: 1
Patch Set 2 : variable renames #
Depends on Patchset: Messages
Total messages: 8 (4 generated)
|