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

Change-Id: I2c95d2ca6838c0558f1f999385eaea5ca995d867