[HWUI] use ANativeWindow_getLastDequeueDuration api

Replaces the query() call for getting the duration of the internal
dequeue() call a call that will be abi stable.

Bug: 137012798
Test: builds
Change-Id: I6d2118a7c093dd2ecc4ebfb4b4ee8556f7e709a7
1 file changed