swapBuffersLocked stamps the count header of the active buffer, sets its draining flag, flips active to the other buffer, and returns the Drain call parameters. Returns drainIdx=-1 when there is nothing to flush.
()
source not stored for this graph (policy: none)
no test coverage detected