Flutter Engine
The Flutter Engine
|
#include <GpuTimer.h>
Public Types | |
enum class | QueryStatus { kInvalid , kPending , kDisjoint , kAccurate } |
Public Member Functions | |
GpuTimer (bool disjointSupport) | |
virtual | ~GpuTimer () |
bool | disjointSupport () const |
void | queueStart () |
PlatformTimerQuery | queueStop () |
virtual QueryStatus | checkQueryStatus (PlatformTimerQuery)=0 |
virtual std::chrono::nanoseconds | getTimeElapsed (PlatformTimerQuery)=0 |
virtual void | deleteQuery (PlatformTimerQuery)=0 |
Private Member Functions | |
virtual PlatformTimerQuery | onQueueTimerStart () const =0 |
virtual void | onQueueTimerStop (PlatformTimerQuery) const =0 |
Platform-independent interface for timing operations on the GPU.
Definition at line 23 of file GpuTimer.h.
|
strong |
Enumerator | |
---|---|
kInvalid | |
kPending | |
kDisjoint | |
kAccurate |
Definition at line 56 of file GpuTimer.h.
|
inline |
Definition at line 25 of file GpuTimer.h.
|
inlinevirtual |
Definition at line 29 of file GpuTimer.h.
|
pure virtual |
|
pure virtual |
|
inline |
Returns whether this timer can detect disjoint GPU operations while timing. If false, a query has less confidence when it completes with QueryStatus::kAccurate.
Definition at line 35 of file GpuTimer.h.
|
pure virtual |
|
privatepure virtual |
|
privatepure virtual |
|
inline |
Inserts a "start timing" command in the GPU command stream.
Definition at line 40 of file GpuTimer.h.
|
inline |
Inserts a "stop timing" command in the GPU command stream.
Definition at line 50 of file GpuTimer.h.