diff options
author | Yuxin Hu <yuxinhu@google.com> | 2023-05-25 22:46:13 +0000 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2023-05-29 02:05:32 +0000 |
commit | b5a0645f97eae86883b285a4ce294524275806c5 (patch) | |
tree | 42c38cefef93e485e57af9218822cfa360217c92 | |
parent | b7a27525ebcf0bfeb3055b6120f35888a6a47b6a (diff) | |
download | native-b5a0645f97eae86883b285a4ce294524275806c5.tar.gz |
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: 269060366
Bug: 280016556
Bug: 283372172
Test: m; atest android.hardware.nativehardware.cts.AHardwareBufferNativeTests
Change-Id: I2552b47dda49a09218a7741c45641c02bdd807ee
Merged-In: I2552b47dda49a09218a7741c45641c02bdd807ee
(cherry picked from commit 5c703e7c520161b3ca645d9cea90cd50b26ca392)
-rw-r--r-- | opengl/libs/EGL/egl_display.cpp | 4 |
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"); |