summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Yuxin Hu <yuxinhu@google.com> 2023-03-14 01:43:05 +0000
committer Yuxin Hu <yuxinhu@google.com> 2023-03-14 18:36:03 +0000
commit7fee44112b0c71686d69c6de1833760d224acd6e (patch)
treef5c8ff656d435dc4ca3292c67a9d58c3e6e80f15 /libs/ultrahdr/jpegencoderhelper.cpp
parent849d782248b8c24fb538c84defc5b5d8f2a48bac (diff)
Conditionally expose EGL_ANDROID_get_frame_timestamps extension
Expose EGL_ANDROID_get_frame_timestamps extension if service.sf.present_timestamp sysprop is true, and we use ANGLE egl. On cuttlefish we disabled service.sf.present_timestamp, this further disables VK_GOOGLE_display_timing extension. ANGLE's eglSurfaceAttrib(EGL_TIMESTAMPS_ANDROID) requires both EGL_ANDROID_get_frame_timestamps and VK_GOOGLE_display_timing extension to work: https://chromium-review.googlesource.com/c/angle/angle/+/3753396. Android EGL Wrapper's eglSurfaceAttrib() implementation forwards the call to ANGLE. Therefore, we need to make ANGLE and Android EGL Wrapper report consistent results: only expose EGL_ANDROID_get_frame_timestamps in Android EGL Wrapper if service.sf.present_timestamp sysprop is true. That way we won't have Android EGL Wrapper claiming the EGL_ANDROID_get_frame_timestamps extension is supported first, but then the subsequent call of eglSurfaceAttrib(EGL_TIMESTAMPS_ANDROID) to ANGLE fails. Bug: b/269060366 Test: m; cts-tradefed run commandAndExit cts -m CtsDeqpTestCases --abi x86 --skip-preconditions --skip-all-system-status-check --module-arg 'CtsDeqpTestCases:deqp-use-angle:vulkan' --module-arg 'CtsDeqpTestCases:include-filter:dEQP-EGL.functional.get_frame_timestamps*'; Change-Id: Id96d0c749c80ba54aa1e48dba85817efab8b7eea
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions