Keep item view's layer as long as app-list is dragged
The current code nicely creates and destroys the layer of individual app-list item view when dragging the app-list to reveal. This actually invalidates the parent layer and causes during the drag. Creating the layers of all items when the drag starts keeping them as long as the drag continues actually reduce unnecessary repainting because of this. This CL does not change the LauncherDragTest numbers, but it actually decreases the presentation time of dragging significantly on nocturne with my test account -- mean ~110msec to ~65msec. Bug: 987095 Test: manually / ash_unittests Change-Id: Ib26fb9f192832b91237ed155d30f56bae80d76d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717424 Commit-Queue: Jun Mukai <mukai@chromium.org> Reviewed-by:Alex Newcomer <newcomer@chromium.org> Cr-Commit-Position: refs/heads/master@{#680623}
Showing
Please register or sign in to comment