class FenceListener
Defined at line 20 of file ../../src/ui/lib/escher/flib/fence_listener.h
Provides access to the consumption fence.
Public Methods
void FenceListener (zx::event fence)
Takes ownership of the fence.
|fence| must be a valid handle.
Defined at line 12 of file ../../src/ui/lib/escher/flib/fence_listener.cc
bool WaitReady (zx::duration timeout)
Waits for the fence to indicate that the buffer is ready or for the
timeout to expire, whichever comes first.
Defined at line 20 of file ../../src/ui/lib/escher/flib/fence_listener.cc
bool ready ()
Returns whether this fence has been signalled.
Defined at line 37 of file ../../src/ui/lib/escher/flib/fence_listener.h
const zx::event & event ()
Defined at line 39 of file ../../src/ui/lib/escher/flib/fence_listener.h
void WaitReadyAsync (fit::closure ready_callback)
Invokes the callback when the fence has been signalled. The callback will
be invoked on the current message loop.
Can only be called after any previous WaitReadyAsync has invoked the
callback. |ready_callback| must be non-null.
Defined at line 40 of file ../../src/ui/lib/escher/flib/fence_listener.cc