Flutter Engine
The Flutter Engine
|
#include <GrGLFinishCallbacks.h>
Public Member Functions | |
GrGLFinishCallbacks (GrGLGpu *gpu) | |
~GrGLFinishCallbacks () | |
void | callAll (bool doDelete) |
void | add (GrGpuFinishedProc finishedProc, GrGpuFinishedContext finishedContext) |
void | check () |
bool | empty () const |
Maintains a list of callbacks to be called when work on the GPU is complete.
Definition at line 22 of file GrGLFinishCallbacks.h.
GrGLFinishCallbacks::GrGLFinishCallbacks | ( | GrGLGpu * | gpu | ) |
Definition at line 11 of file GrGLFinishCallbacks.cpp.
GrGLFinishCallbacks::~GrGLFinishCallbacks | ( | ) |
Definition at line 13 of file GrGLFinishCallbacks.cpp.
void GrGLFinishCallbacks::add | ( | GrGpuFinishedProc | finishedProc, |
GrGpuFinishedContext | finishedContext | ||
) |
Add a new callback to the list.
finishedProc | The function to call when GPU work is complete. |
finishedContext | The context object to pass back to the callback. |
Definition at line 17 of file GrGLFinishCallbacks.cpp.
void GrGLFinishCallbacks::callAll | ( | bool | doDelete | ) |
Call all the callbacks in the list. This will block until all work is done.
doDelete | delete the contained fence object. |
Definition at line 41 of file GrGLFinishCallbacks.cpp.
void GrGLFinishCallbacks::check | ( | ) |
Check if any GPU work is complete, and call the associated callbacks. This call is non-blocking.
Definition at line 27 of file GrGLFinishCallbacks.cpp.
|
inline |
Returns true if the callback list is empty.
Definition at line 51 of file GrGLFinishCallbacks.h.