summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2023-06-21 07:03:47 +0000
committer Peiyong Lin <lpy@google.com> 2023-06-27 02:56:51 +0000
commit9b8ec2f05b98f46785d17092646efcc2e7a2d589 (patch)
tree125ac7dfa7c77f3301ca36ac5064e40214323d72 /libs/ultrahdr/jpegencoderhelper.cpp
parentd136af5b6fc7d457126753092791283ff7933aef (diff)
Allow per-app opt in to use system ANGLE.
Previously the per-app opt in only works for ANGLE apk, this patch refactors the logic to allow per-app opt in to work for system ANGLE. This patch checks whether system ANGLE is supported and if it presents, uses it if the ANGLE apk setup fails. With this patch, the per-app opt in will function this way: 1) When full ANGLE apk is installed Regardless of whether system ANGLE is present, the "angle" option will use ANGLE apk, the "native" option will switch to native GLES drivers specified by ro.hardware.egl, the "default" option will use whatever the default graphics driver is loaded. 2) When full ANGLE apk is not installed and system ANGLE is present The "angle" option will use system ANGLE, the "native" option will switch to native GLES drivers specified by ro.hardware.egl, the "default" option will use whatever the default graphics driver is loaded. 3) When full ANGLE apk is not installed and system ANGLE doesn't exist The per-app option will not function at all. To Properly load ANGLE, the namespace of system ANGLE should be inherited from sphal namespace so that search paths and libraries linkage are properly constructed. Minor: clean up unused and unnecessary variables. Bug: b/283858001 Test: test with camera Test: atest CtsAngleIntegrationHostTestCases Change-Id: I2c9d4e1747796d2b0ae58c4456b781b9940fbb26
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions