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

Unified Diff: components/exo/wayland/clients/client_base.cc

Issue 2908313002: Revert of gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync. (Closed)
Patch Set: Created 3 years, 7 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 | « cc/output/direct_renderer.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/clients/client_base.cc
diff --git a/components/exo/wayland/clients/client_base.cc b/components/exo/wayland/clients/client_base.cc
index 137bfb17a9a580e0c48d8ffe55a46f06b44dc686..e604367854df7083a2fc12f0ae05ffcbeed2a4da 100644
--- a/components/exo/wayland/clients/client_base.cc
+++ b/components/exo/wayland/clients/client_base.cc
@@ -288,11 +288,12 @@
make_current_.reset(
new ui::ScopedMakeCurrent(gl_context_.get(), gl_surface_.get()));
- DCHECK(gl::GLSurfaceEGL::HasEGLExtension("EGL_KHR_fence_sync"));
+ if (gl::GLSurfaceEGL::HasEGLExtension("EGL_EXT_image_flush_external") ||
+ gl::GLSurfaceEGL::HasEGLExtension("EGL_ARM_implicit_external_sync")) {
+ egl_sync_type_ = EGL_SYNC_FENCE_KHR;
+ }
if (gl::GLSurfaceEGL::HasEGLExtension("EGL_ANDROID_native_fence_sync")) {
egl_sync_type_ = EGL_SYNC_NATIVE_FENCE_ANDROID;
- } else {
- egl_sync_type_ = EGL_SYNC_FENCE_KHR;
}
native_interface = sk_sp<const GrGLInterface>(GrGLCreateNativeInterface());
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698