summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yuxin Hu <yuxinhu@google.com> 2023-05-25 22:46:13 +0000
committer Peiyong Lin <lpy@google.com> 2023-05-28 16:35:48 +0000
commit5c703e7c520161b3ca645d9cea90cd50b26ca392 (patch)
tree8709ff947e3bbd2389c6d85fe395e56be6aed087
parent2e2a114d4a1256cea0604d7ef02cd215c4d90117 (diff)
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: I2552b47dda49a09218a7741c45641c02bdd807ee Merged-In: I2552b47dda49a09218a7741c45641c02bdd807ee
-rw-r--r--opengl/libs/EGL/egl_display.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp
index c2c856e22a..6593c1bb16 100644
--- a/opengl/libs/EGL/egl_display.cpp
+++ b/opengl/libs/EGL/egl_display.cpp
@@ -326,10 +326,10 @@ EGLBoolean egl_display_t::initialize(EGLint* major, EGLint* minor) {
// 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");