Fix the missing extension EGL_ANDROID_image_native_buffer
In http://ag/22040002, EGL_ANDROID_get_frame_timestamps
is conditionally added to the mExtensionString. A space
at the end of the extension name is mandatory, because
we use ' ' or '\0' as an indicator when parsing the
mExtensionString to find each individual extension name.
Bug: b/269060366
Bug: b/280016556
Test: m; atest android.hardware.nativehardware.cts.AHardwareBufferNativeTests
Change-Id: Ie8ddc3018c37d77167b95210d89c7e7f7e6e69e7
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp
index c2c856e..6593c1b 100644
--- a/opengl/libs/EGL/egl_display.cpp
+++ b/opengl/libs/EGL/egl_display.cpp
@@ -326,10 +326,10 @@
// device's present timestamps are reliable (which may not be the case on emulators).
if (cnx->useAngle) {
if (android::base::GetBoolProperty("service.sf.present_timestamp", false)) {
- mExtensionString.append("EGL_ANDROID_get_frame_timestamps");
+ mExtensionString.append("EGL_ANDROID_get_frame_timestamps ");
}
} else {
- mExtensionString.append("EGL_ANDROID_get_frame_timestamps");
+ mExtensionString.append("EGL_ANDROID_get_frame_timestamps ");
}
hasColorSpaceSupport = findExtension(disp.queryString.extensions, "EGL_KHR_gl_colorspace");