diff options
author | 2016-05-16 14:09:56 -0700 | |
---|---|---|
committer | 2016-05-16 14:09:56 -0700 | |
commit | edea94c356dddd339d776e1f0d906f44427222b9 (patch) | |
tree | 4706db11cb73a742aa4a6df13f0d5516f4e46574 /tools/gpu/gl/egl | |
parent | 94b25b0a803790618fd04840844f5722dba1f801 (diff) |
Implement vulkan fence syncs for nanobench
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1974913003
Review-Url: https://codereview.chromium.org/1974913003
Diffstat (limited to 'tools/gpu/gl/egl')
-rw-r--r-- | tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp index ae61b337d9..edbc63200b 100644 --- a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp +++ b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp @@ -25,7 +25,7 @@ public: static EGLFenceSync* CreateIfSupported(EGLDisplay); SkPlatformGpuFence SK_WARN_UNUSED_RESULT insertFence() const override; - bool waitFence(SkPlatformGpuFence fence, bool flush) const override; + bool waitFence(SkPlatformGpuFence fence) const override; void deleteFence(SkPlatformGpuFence fence) const override; private: @@ -305,12 +305,12 @@ SkPlatformGpuFence EGLFenceSync::insertFence() const { return eglCreateSyncKHR(fDisplay, EGL_SYNC_FENCE_KHR, nullptr); } -bool EGLFenceSync::waitFence(SkPlatformGpuFence platformFence, bool flush) const { +bool EGLFenceSync::waitFence(SkPlatformGpuFence platformFence) const { EGLSyncKHR eglsync = static_cast<EGLSyncKHR>(platformFence); return EGL_CONDITION_SATISFIED_KHR == eglClientWaitSyncKHR(fDisplay, eglsync, - flush ? EGL_SYNC_FLUSH_COMMANDS_BIT_KHR : 0, + EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_FOREVER_KHR); } |