Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2418613004: ui: Add EGL_ANDROID_native_fence_sync support.
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.cc
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc
index 9f3df9f3c88c7e73697fa64831a42bbab9a1d24c..25e8b573b8e92bb0b49391805e462e33436351b5 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -1076,14 +1076,7 @@ scoped_refptr<gl::GLImage> GpuChannel::CreateImageForGpuMemoryBuffer(
scoped_refptr<gl::GLFence> GpuChannel::CreateFenceForGpuFence(
const gfx::GpuFenceHandle& handle) {
-#if defined(OS_LINUX)
- base::ScopedFD libsync_fd(handle.fd.fd);
- if (libsync_fd.is_valid())
- return make_scoped_refptr(new gl::GLFenceLibsync(std::move(libsync_fd)));
-#endif
-
- return make_scoped_refptr(
- new gl::GLFenceSharedEvent(handle.shared_event_handle));
+ return gl::GLFence::CreateFromGpuFenceHandle(handle);
}
} // namespace gpu
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698