commit | a61edcb5190368d9048d9afda1159070a2d26668 | [log] [tgz] |
---|---|---|
author | Ady Abraham <adyabr@google.com> | Thu Jan 30 18:32:03 2020 -0800 |
committer | Ady Abraham <adyabr@google.com> | Fri Jan 31 13:45:43 2020 -0800 |
tree | 9d8ab565741af2358ae5a4e4aed66f020eb12fcd | |
parent | 34189ff16408cdbf62e0d2cff9806c56d8b87fc6 [diff] |
SurfaceFlinger: keep LayerInfo history for inactive layers Instead if clearing the history for past layers, keep a timestamp that will be used to filter out the frames which are outdated. This allows us to distinguish between frequent vs. infrequent layers when we get a buffer after a long time of inactivity. Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Bug: 147516364 Change-Id: Ieb64cf6fc17a306c2db04b734631334af6703e79