SF: Clear layer history when inconclusive to frequent
layer transition

BUG: 265561529
Test: atest LayerHistoryTest
Benchmark shows improvement with the changes https://android-build.googleplex.com/builds/abtd/run/L82600000959656128

Change-Id: I152aa97f00592960411133de150990747ca8b31d
3 files changed