Lines Matching refs:sk_gpu_test
16 class GLFenceSync : public sk_gpu_test::FenceSync {
18 static std::unique_ptr<FenceSync> MakeIfSupported(const sk_gpu_test::GLTestContext*);
20 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
21 bool waitFence(sk_gpu_test::PlatformFence fence) const override;
22 void deleteFence(sk_gpu_test::PlatformFence fence) const override;
25 GLFenceSync(const sk_gpu_test::GLTestContext*, const char* ext = "");
34 GR_STATIC_ASSERT(sizeof(GLsync) <= sizeof(sk_gpu_test::PlatformFence));
47 class GLNVFenceSync : public sk_gpu_test::FenceSync {
49 GLNVFenceSync(const sk_gpu_test::GLTestContext*);
51 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
52 bool waitFence(sk_gpu_test::PlatformFence fence) const override;
53 void deleteFence(sk_gpu_test::PlatformFence fence) const override;
75 std::unique_ptr<sk_gpu_test::FenceSync> GLFenceSync::MakeIfSupported( in MakeIfSupported()
76 const sk_gpu_test::GLTestContext* ctx) { in MakeIfSupported()
100 GLFenceSync::GLFenceSync(const sk_gpu_test::GLTestContext* ctx, const char* ext) { in GLFenceSync()
106 sk_gpu_test::PlatformFence GLFenceSync::insertFence() const { in insertFence()
108 return reinterpret_cast<sk_gpu_test::PlatformFence>(glsync); in insertFence()
111 bool GLFenceSync::waitFence(sk_gpu_test::PlatformFence fence) const { in waitFence()
116 void GLFenceSync::deleteFence(sk_gpu_test::PlatformFence fence) const { in deleteFence()
121 GLNVFenceSync::GLNVFenceSync(const sk_gpu_test::GLTestContext* ctx) { in GLNVFenceSync()
128 sk_gpu_test::PlatformFence GLNVFenceSync::insertFence() const { in insertFence()
135 bool GLNVFenceSync::waitFence(sk_gpu_test::PlatformFence fence) const { in waitFence()
140 void GLNVFenceSync::deleteFence(sk_gpu_test::PlatformFence fence) const { in deleteFence()
145 class GLGpuTimer : public sk_gpu_test::GpuTimer {
147 static std::unique_ptr<GLGpuTimer> MakeIfSupported(const sk_gpu_test::GLTestContext*);
149 QueryStatus checkQueryStatus(sk_gpu_test::PlatformTimerQuery) override;
150 std::chrono::nanoseconds getTimeElapsed(sk_gpu_test::PlatformTimerQuery) override;
151 void deleteQuery(sk_gpu_test::PlatformTimerQuery) override;
154 GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext*, const char* ext = "");
158 sk_gpu_test::PlatformTimerQuery onQueueTimerStart() const override;
159 void onQueueTimerStop(sk_gpu_test::PlatformTimerQuery) const override;
183 typedef sk_gpu_test::GpuTimer INHERITED;
186 std::unique_ptr<GLGpuTimer> GLGpuTimer::MakeIfSupported(const sk_gpu_test::GLTestContext* ctx) { in MakeIfSupported()
203 GLGpuTimer::GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext* ctx, const char* ext) in GLGpuTimer()
219 sk_gpu_test::PlatformTimerQuery GLGpuTimer::onQueueTimerStart() const { in onQueueTimerStart()
223 return sk_gpu_test::kInvalidTimerQuery; in onQueueTimerStart()
231 return static_cast<sk_gpu_test::PlatformTimerQuery>(queryID); in onQueueTimerStart()
234 void GLGpuTimer::onQueueTimerStop(sk_gpu_test::PlatformTimerQuery platformTimer) const { in onQueueTimerStop()
235 if (sk_gpu_test::kInvalidTimerQuery == platformTimer) { in onQueueTimerStop()
241 sk_gpu_test::GpuTimer::QueryStatus
242 GLGpuTimer::checkQueryStatus(sk_gpu_test::PlatformTimerQuery platformTimer) { in checkQueryStatus()
262 std::chrono::nanoseconds GLGpuTimer::getTimeElapsed(sk_gpu_test::PlatformTimerQuery platformTimer) { in getTimeElapsed()
270 void GLGpuTimer::deleteQuery(sk_gpu_test::PlatformTimerQuery platformTimer) { in deleteQuery()
275 GR_STATIC_ASSERT(sizeof(GrGLuint) <= sizeof(sk_gpu_test::PlatformTimerQuery));
279 namespace sk_gpu_test { namespace