Do not create app_list item's layer until it's necessary

This improves the animation smoothness for expanding to fullscreen
from peeking, from ~20 to ~65 for oneshot, and ~80 to ~90 for

Still sometimes (1 in 5 attempts) ~20 animation smoothness can be

This also improves drag-to-reveal performance; LauncherDragTest.Open
is improved by ~10msecs (~80 to ~70).

Bug: 978179, 961467
Test: interactive_ui_tests
Change-Id: Ia0550cada6cedb8525dee8472e89de9c1d5e246f
Reviewed-by: Alex Newcomer <>
Commit-Queue: Jun Mukai <>
Cr-Commit-Position: refs/heads/master@{#672145}
5 files changed