Check transaction queues when dropping or queuing buffers

When checking if a transaction is ready to be presented, we need to
consider the buffers in the current transaction queue. The current
state is only updated after the transactionIsReadyToBeApplied check.

Without this fix, we were incorrectly dropping buffers that did not
have presentation timestamps.

Test: atest SurfaceViewBufferTests
Test: go/wm-smoke
Bug: b/178148035
Change-Id: Idb108063ea2694f4a5ab5bbc9fc039f26579a16b
3 files changed