Add a flag to callbacks whether to include jank data.
For transaction on-complete callbacks, SurfaceFlinger will now only send the JankData if the flag is set. If the flag is not set on all callbacks on a surface in a transaction, any pending jank data for that surface is now dropped. The client ensures that the flag is set on any callback on surfaces for which a jank listener is registered. Thus, the data now dropped by SurfaceFlinger would have been dropped on the client side anyways. Bug: 235178314 Bug: 221393601 Test: atest SurfaceFlinger_test Change-Id: I176d6962f09b587b39c5d106c48949571151f3bd
Loading
Please register or sign in to comment