Lines Matching refs:sk_gpu_test

15 class GLFenceSync : public sk_gpu_test::FenceSync {
17 static std::unique_ptr<GLFenceSync> MakeIfSupported(const sk_gpu_test::GLTestContext*);
19 sk_gpu_test::PlatformFence SK_WARN_UNUSED_RESULT insertFence() const override;
20 bool waitFence(sk_gpu_test::PlatformFence fence) const override;
21 void deleteFence(sk_gpu_test::PlatformFence fence) const override;
24 GLFenceSync(const sk_gpu_test::GLTestContext*, const char* ext = "");
33 GR_STATIC_ASSERT(sizeof(GLsync) <= sizeof(sk_gpu_test::PlatformFence));
46 std::unique_ptr<GLFenceSync> GLFenceSync::MakeIfSupported(const sk_gpu_test::GLTestContext* ctx) {
65 GLFenceSync::GLFenceSync(const sk_gpu_test::GLTestContext* ctx, const char* ext) {
71 sk_gpu_test::PlatformFence GLFenceSync::insertFence() const {
73 return reinterpret_cast<sk_gpu_test::PlatformFence>(glsync);
76 bool GLFenceSync::waitFence(sk_gpu_test::PlatformFence fence) const {
81 void GLFenceSync::deleteFence(sk_gpu_test::PlatformFence fence) const {
86 class GLGpuTimer : public sk_gpu_test::GpuTimer {
88 static std::unique_ptr<GLGpuTimer> MakeIfSupported(const sk_gpu_test::GLTestContext*);
90 QueryStatus checkQueryStatus(sk_gpu_test::PlatformTimerQuery) override;
91 std::chrono::nanoseconds getTimeElapsed(sk_gpu_test::PlatformTimerQuery) override;
92 void deleteQuery(sk_gpu_test::PlatformTimerQuery) override;
95 GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext*, const char* ext = "");
99 sk_gpu_test::PlatformTimerQuery onQueueTimerStart() const override;
100 void onQueueTimerStop(sk_gpu_test::PlatformTimerQuery) const override;
124 typedef sk_gpu_test::GpuTimer INHERITED;
127 std::unique_ptr<GLGpuTimer> GLGpuTimer::MakeIfSupported(const sk_gpu_test::GLTestContext* ctx) {
144 GLGpuTimer::GLGpuTimer(bool disjointSupport, const sk_gpu_test::GLTestContext* ctx, const char* ext)
160 sk_gpu_test::PlatformTimerQuery GLGpuTimer::onQueueTimerStart() const {
164 return sk_gpu_test::kInvalidTimerQuery;
172 return static_cast<sk_gpu_test::PlatformTimerQuery>(queryID);
175 void GLGpuTimer::onQueueTimerStop(sk_gpu_test::PlatformTimerQuery platformTimer) const {
176 if (sk_gpu_test::kInvalidTimerQuery == platformTimer) {
182 sk_gpu_test::GpuTimer::QueryStatus
183 GLGpuTimer::checkQueryStatus(sk_gpu_test::PlatformTimerQuery platformTimer) {
203 std::chrono::nanoseconds GLGpuTimer::getTimeElapsed(sk_gpu_test::PlatformTimerQuery platformTimer) {
211 void GLGpuTimer::deleteQuery(sk_gpu_test::PlatformTimerQuery platformTimer) {
216 GR_STATIC_ASSERT(sizeof(GrGLuint) <= sizeof(sk_gpu_test::PlatformTimerQuery));
220 namespace sk_gpu_test {
286 } // namespace sk_gpu_test