Don't use GpuFence or SurfaceControl on SwiftShader
The EGL_ANDROID_native_fence_sync isn't reported as present to applications, so Chrome uses heuristics to infer if it's present. It's not usable in emulation or for SwiftShader. SurfaceControl assumes that GpuFence support is available, so don't use it if native fence sync is unavailable since that's used to implement GpuFence on Android. This check already existed but duplicated logic from gl_surface_egl, replace this with a feature check. Bug: 1086736 Change-Id: Ie2db42f605cb3eb90726b36b1bb264b4190bef80 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217036Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Kenneth Russell <kbr@chromium.org> Commit-Queue: Klaus Weidner <klausw@chromium.org> Cr-Commit-Position: refs/heads/master@{#772964}
Showing
Please register or sign in to comment