Prevent the refresh rate changed frequently when small dirty

Count the small dirty to ensure the recent frames are consistently
in updating small dirty.

Bug: 283055450
Test: atest LayerHistoryTest
Change-Id: I5282821be1d1269475e2acbf040626607d3c5536
3 files changed