SurfaceFlinger: keep layer history for inactive layers am: 983e568b3c am: 9dda4149c2

Change-Id: I1d881134814162d4a02389dc4016611a83519801