diff options
Diffstat (limited to 'Runtime/GfxDevice/threaded/ThreadedTimerQuery.h')
-rw-r--r-- | Runtime/GfxDevice/threaded/ThreadedTimerQuery.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/threaded/ThreadedTimerQuery.h b/Runtime/GfxDevice/threaded/ThreadedTimerQuery.h new file mode 100644 index 0000000..b8aecbd --- /dev/null +++ b/Runtime/GfxDevice/threaded/ThreadedTimerQuery.h @@ -0,0 +1,29 @@ +#ifndef THREADEDTIMERQUERY_H +#define THREADEDTIMERQUERY_H + +#if ENABLE_PROFILER + +#include "Runtime/GfxDevice/GfxTimerQuery.h" + +class GfxDeviceClient; +struct ClientDeviceTimerQuery; + +class ThreadedTimerQuery : public GfxTimerQuery +{ +public: + ThreadedTimerQuery(GfxDeviceClient& device); + ~ThreadedTimerQuery(); + + virtual void Measure(); + virtual ProfileTimeFormat GetElapsed(UInt32 flags); + +private: + ProfileTimeFormat GetElapsedIfReady(); + void DoLockstep(); + + GfxDeviceClient& m_ClientDevice; + ClientDeviceTimerQuery* m_ClientQuery; +}; + +#endif +#endif |