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

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

Issue 2864483007: gpu: Use ANDROID_native_fence_sync instead of ARM_implicit_external_sync.
Patch Set: EGL_KHR_fence_sync DCHECK 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
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 e604367854df7083a2fc12f0ae05ffcbeed2a4da..137bfb17a9a580e0c48d8ffe55a46f06b44dc686 100644
--- a/components/exo/wayland/clients/client_base.cc
+++ b/components/exo/wayland/clients/client_base.cc
@@ -288,12 +288,11 @@ bool ClientBase::Init(const InitParams& params) {
make_current_.reset(
new ui::ScopedMakeCurrent(gl_context_.get(), gl_surface_.get()));
- if (gl::GLSurfaceEGL::HasEGLExtension("EGL_EXT_image_flush_external") ||
- gl::GLSurfaceEGL::HasEGLExtension("EGL_ARM_implicit_external_sync")) {
- egl_sync_type_ = EGL_SYNC_FENCE_KHR;
- }
+ DCHECK(gl::GLSurfaceEGL::HasEGLExtension("EGL_KHR_fence_sync"));
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());

Powered by Google App Engine
This is Rietveld 408576698