summaryrefslogtreecommitdiff
path: root/opengl
AgeCommit message (Collapse)Author
2021-06-15Avoid trying to disconnect twice with ANGLEJason Macnak
The Vulkan runtime makes all the native_window_* calls when running with ANGLE. Noticed while debugging b/184280023. Bug: b/154237217 Test: MixedDeviceOwnerTest on Cuttlefish w/ SwANGLE Change-Id: Ie7c5ebcedf6eb0c23fdd1223c0ef866d4a2d9944
2021-06-04eglSurfaceAttrib EGL_TIMESTAMPS_ANDROID non-window surface fix.rnlee
The spec says: "If attribute is EGL_TIMESTAMPS_ANDROID, then values specifies whether to enable/disable timestamp collection for this surface. A value of EGL_TRUE enables timestamp collection, while a value of EGL_FALSE disables it. The initial value is false. If surface is not a window surface this has no effect." Setting an error is considered a side effect, so return EGL_TRUE for EGL_TIMESTAMPS_ANDROID attribute. BUG: 174481138 Test: APK b/174481138#comment1, `adb logcat *:E -e egl` no error Change-Id: Ia6f04126bd3dead47648a1c71f7100224f28553d
2021-04-28Merge "Remove llndk_headers module" am: aaf8e170a6 am: b86e54d22b am: 4078d3da96Colin Cross
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1687409 Change-Id: I0e3816057ecd94461f7e291fc9033b98bc8b9dc3
2021-04-27Merge "Replace llndk_library with llndk clause in cc_library" am: b962746880 ↵Colin Cross
am: 6a34a736ab am: d4dfe6ffcb Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1684009 Change-Id: I25715d0af7d5cf74bd283947ba9378e2f27d4ef2
2021-04-26Remove llndk_headers moduleColin Cross
Use a cc_library_headers module with llndk.llndk_headers: true instead of an llndk_headers module. Bug: 170784825 Test: m checkbuild Test: compare out/soong/build.ninja Change-Id: I6717ab613adde20652f6e861ca7179e202e63a83
2021-04-22Replace llndk_library with llndk clause in cc_libraryColin Cross
Remove the vestigial llndk_library modules and replace them with properties in the llndk clause of the implementation cc_library. Bug: 170784825 Test: m checkbuild Test: compare out/soong/build.ninja Change-Id: Ic4a19a87c64e29c10c550e3b891859559bcb5324
2021-03-10Merge "Add timvp to opengl/OWNERS" am: 8d88407f02 am: c5480f300f am: 1f7faec710Tim Van Patten
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1624739 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I68e83660058fe618ba6fba9dbfcf202a50a55c9c
2021-03-09Merge "Update OWNERS files" am: 3e408369ff am: 00e0bf8fca am: 397d02d1ecYiwei Zhang
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1623122 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2eb7f5e7d3a70bfb6e50034ea18b2a43370ceedf
2021-03-09Add timvp to opengl/OWNERSTim Van Patten
aosp/1623124 recently updated the OWNERS file for GraphicsEnvironment to point to opengl/OWNERS, rather than listing owners directly. This CL adds timvp@, since he was listed previously. Test: build Change-Id: Ibb375cce8b860c38f61cf563ae632a90101bb0e5
2021-03-09Update OWNERS filesYiwei Zhang
libs/graphicsenv/OWNERS opengl/OWNERS services/gpuservice/OWNERS services/surfaceflinger/TimeStats/OWNERS Test: build Change-Id: Ib828a7ce8000c74b61f9ecef4a2f0bdf4ce31c0a
2021-03-05Read ro.hardware.egl for ANGLE's filenameTim Van Patten
The ANGLE shared object filename is currently hardcoded to libGLESv2_angle.so, which prevents OEMs from specifying their own filename when using ANGLE as the default OpenGL ES driver. This CL updates initializeAnglePlatform() to build the ANGLE library filename using the suffix specified by ro.hardware.egl when loading ANGLE as the default OpenGL ES driver. The filename when loading ANGLE from an APK will remain libGLESv2_angle.so, for compatibilty reasons. This enforces naming conventions when loading ANGLE APKs on to the device, regardless of the name of the built-in version of ANGLE. Bug: 178871212 Test: Build and launch CF Merged-In: I462e076fc500d84fa2a27abfa491f82db4a9df80 Change-Id: I59805445fd101707bda867d29c23a25e24f173d8
2021-03-04Read ro.hardware.egl for ANGLE's filenameTim Van Patten
The ANGLE shared object filename is currently hardcoded to libGLESv2_angle.so, which prevents OEMs from specifying their own filename when using ANGLE as the default OpenGL ES driver. This CL updates initializeAnglePlatform() to build the ANGLE library filename using the suffix specified by ro.hardware.egl when loading ANGLE as the default OpenGL ES driver. The filename when loading ANGLE from an APK will remain libGLESv2_angle.so, for compatibilty reasons. This enforces naming conventions when loading ANGLE APKs on to the device, regardless of the name of the built-in version of ANGLE. Bug: 178871212 Test: Build and launch CF Change-Id: I462e076fc500d84fa2a27abfa491f82db4a9df80
2021-03-02Load ANGLEResetDisplayPlatform via dlsymJason Macnak
... which is slightly more defensive than loading the function via eglGetProcAddress. When loading the function via eglGetProcAdress, the returned function pointer will be one of the ext forwardering helpers (__glExtFwd0 in this observed case). The process can then crash if eglTerminate() is called on a new thread that has not yet called eglMakeCurrent() where the thread local gl_hooks_t is 0x0. Bug: b/181162754 Test: HeifWriterTest on Cuttlefish w/ SwANGLE Change-Id: Ieebea08184e63321abbeccf41d1fdaf10e62ca2b Merged-In: Ia8e55c899f9fde91215ce75313b33517f8440fee
2021-03-01Merge "Load ANGLEResetDisplayPlatform via dlsym" into sc-devJason Macnak
2021-02-25[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/proto/Android.bp cmds/surfacereplayer/replayer/Android.bp data/etc/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/attestation/Android.bp libs/attestation/tests/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/ftl/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvr_manager/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/configdump/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/filter/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp opengl/tests/tritex/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/powermanager/Android.bp services/powermanager/benchmarks/Android.bp services/powermanager/tests/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/FrameTimeline/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vibratorservice/Android.bp services/vibratorservice/benchmarks/Android.bp services/vibratorservice/test/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/Android.bp services/vr/hardware_composer/aidl/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Icd397e38ca313ae4886bd92afa927d4633a75c4f
2021-02-25Revert "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native"Bob Badour
This reverts commit f84491a4874f20653104f47622d7215521310526. This reverts commit 2e6718529b3f3b55d310db6738e71255e9b74dee. Change-Id: I1a9655335b856d6909b27929e00c0bde3186d893
2021-02-25Load ANGLEResetDisplayPlatform via dlsymJason Macnak
... which is slightly more defensive than loading the function via eglGetProcAddress. When loading the function via eglGetProcAdress, the returned function pointer will be one of the ext forwardering helpers (__glExtFwd0 in this observed case). The process can then crash if eglTerminate() is called on a new thread that has not yet called eglMakeCurrent() where the thread local gl_hooks_t is 0x0. Bug: b/181162754 Test: HeifWriterTest on Cuttlefish w/ SwANGLE Change-Id: Ia8e55c899f9fde91215ce75313b33517f8440fee
2021-02-17[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: Ib1de8cd7b87446de45d79db15cd90b93a591846d
2021-02-15[LSC] Add LOCAL_LICENSE_KINDS to frameworks/nativeBob Badour
Added SPDX-license-identifier-Apache-2.0 to: cmds/atrace/Android.bp cmds/bugreport/Android.bp cmds/bugreportz/Android.bp cmds/cmd/Android.bp cmds/dumpstate/Android.bp cmds/dumpsys/Android.bp cmds/dumpsys/tests/Android.bp cmds/flatland/Android.mk cmds/idlcli/Android.bp cmds/installd/Android.bp cmds/installd/tests/Android.bp cmds/ip-up-vpn/Android.mk cmds/lshal/Android.bp cmds/lshal/libprocpartition/Android.bp cmds/rawbu/Android.bp cmds/rss_hwm_reset/Android.bp cmds/service/Android.bp cmds/servicemanager/Android.bp cmds/surfacereplayer/Android.bp cmds/surfacereplayer/replayer/Android.bp libs/adbd_auth/Android.bp libs/android_runtime_lazy/Android.bp libs/arect/Android.bp libs/binder/Android.bp libs/binder/ndk/Android.bp libs/binder/ndk/tests/Android.bp libs/binder/parcel_fuzzer/Android.bp libs/binder/rust/Android.bp libs/binder/rust/tests/Android.bp libs/binder/tests/Android.bp libs/binder/tests/fuzzers/Android.bp libs/binderdebug/Android.bp libs/binderdebug/tests/Android.bp libs/binderthreadstate/1.0/Android.bp libs/binderthreadstate/Android.bp libs/bufferqueueconverter/Android.bp libs/cputimeinstate/Android.bp libs/diskusage/Android.bp libs/dumputils/Android.bp libs/fakeservicemanager/Android.bp libs/gralloc/types/Android.bp libs/gralloc/types/fuzzer/Android.bp libs/gralloc/types/tests/Android.bp libs/graphicsenv/Android.bp libs/gui/Android.bp libs/gui/sysprop/Android.bp libs/gui/tests/Android.bp libs/incidentcompanion/Android.bp libs/input/Android.bp libs/input/tests/Android.bp libs/math/Android.bp libs/math/tests/Android.bp libs/nativebase/Android.bp libs/nativedisplay/Android.bp libs/nativewindow/Android.bp libs/nativewindow/tests/Android.bp libs/renderengine/Android.bp libs/renderengine/tests/Android.bp libs/sensor/Android.bp libs/sensor/tests/Android.bp libs/sensorprivacy/Android.bp libs/ui/Android.bp libs/ui/tests/Android.bp libs/ui/tools/Android.bp libs/vibrator/Android.bp libs/vibrator/fuzzer/Android.bp libs/vr/libpdx/Android.bp libs/vr/libpdx/fuzz/Android.bp libs/vr/libvr_manager/Android.bp opengl/libs/Android.bp opengl/tests/EGLTest/Android.bp opengl/tests/fillrate/Android.bp opengl/tests/finish/Android.bp opengl/tests/gl2_basic/Android.bp opengl/tests/gl2_cameraeye/Android.bp opengl/tests/gl2_copyTexImage/Android.bp opengl/tests/gl2_java/Android.bp opengl/tests/gl2_jni/Android.bp opengl/tests/gl2_yuvtex/Android.bp opengl/tests/gl_jni/Android.bp opengl/tests/gl_perf/Android.bp opengl/tests/gl_perfapp/Android.bp opengl/tests/gl_yuvtex/Android.bp opengl/tests/gldual/Android.bp opengl/tests/gralloc/Android.bp opengl/tests/hwc/Android.bp opengl/tests/lib/Android.bp opengl/tests/lighting1709/Android.bp opengl/tests/linetex/Android.bp opengl/tests/swapinterval/Android.bp opengl/tests/testFramerate/Android.bp opengl/tests/testLatency/Android.bp opengl/tests/testPauseResume/Android.bp opengl/tests/testViewport/Android.bp opengl/tests/textures/Android.bp services/audiomanager/Android.bp services/automotive/display/Android.bp services/batteryservice/Android.bp services/displayservice/Android.bp services/gpuservice/Android.bp services/gpuservice/bpfprogs/Android.bp services/gpuservice/gpumem/Android.bp services/gpuservice/gpustats/Android.bp services/gpuservice/tests/unittests/Android.bp services/gpuservice/tracing/Android.bp services/inputflinger/Android.bp services/inputflinger/benchmarks/Android.bp services/inputflinger/dispatcher/Android.bp services/inputflinger/host/Android.bp services/inputflinger/reader/Android.bp services/inputflinger/reporter/Android.bp services/inputflinger/tests/Android.bp services/inputflinger/tests/fuzzers/Android.bp services/powermanager/Android.bp services/schedulerservice/Android.bp services/sensorservice/Android.bp services/sensorservice/hidl/Android.bp services/sensorservice/tests/Android.bp services/stats/Android.bp services/surfaceflinger/Android.bp services/surfaceflinger/CompositionEngine/Android.bp services/surfaceflinger/TimeStats/Android.bp services/surfaceflinger/TimeStats/timestatsproto/Android.bp services/surfaceflinger/layerproto/Android.bp services/surfaceflinger/sysprop/Android.bp services/surfaceflinger/tests/Android.bp services/surfaceflinger/tests/fakehwc/Android.bp services/surfaceflinger/tests/unittests/Android.bp services/surfaceflinger/tests/vsync/Android.bp services/surfaceflinger/tests/waitforvsync/Android.bp services/utils/Android.bp services/utils/tests/Android.bp services/vr/hardware_composer/Android.bp services/vr/virtual_touchpad/Android.bp vulkan/libvulkan/Android.bp vulkan/nulldrv/Android.bp vulkan/vkjson/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS legacy_notice to: Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/Android.bp opengl/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: libs/vr/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: headers/Android.bp services/vr/Android.bp vulkan/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS to: cmds/surfacereplayer/proto/Android.bp libs/vr/libbroadcastring/Android.bp libs/vr/libbufferhub/Android.bp libs/vr/libbufferhubqueue/Android.bp libs/vr/libbufferhubqueue/benchmarks/Android.bp libs/vr/libbufferhubqueue/tests/Android.bp libs/vr/libdisplay/Android.bp libs/vr/libdvr/Android.bp libs/vr/libdvr/tests/Android.bp libs/vr/libdvrcommon/Android.bp libs/vr/libpdx_default_transport/Android.bp libs/vr/libpdx_uds/Android.bp libs/vr/libperformance/Android.bp libs/vr/libvrflinger/Android.bp libs/vr/libvrflinger/tests/Android.bp libs/vr/libvrsensor/Android.bp opengl/tests/configdump/Android.bp opengl/tests/filter/Android.bp opengl/tests/gl_basic/Android.bp opengl/tests/tritex/Android.bp services/vr/bufferhubd/Android.bp services/vr/hardware_composer/aidl/Android.bp Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT legacy_notice to: opengl/tests/angeles/Android.bp Added SPDX-license-identifier-MIT to: services/vr/performanced/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ib1de8cd7b87446de45d79db15cd90b93a591846d Merged-in: I61e7702e6b36f218bebc7c87853001861a92741e Merged-in: I9d9d5fb32033c08cfb517f6cfc0ecb4cf1eee2fe Merged-in: I10f45547b1161e3768a134b38bf40d77a3a82f09
2021-02-05Rename DisplayConfig to DisplayModeMarin Shalamanov
This CL continues the raneming of display "configs" to display "modes". The goal of this is to have the same names as in the java code and the public display APIs. Additionally in this CL we move DisplayConfig (from libui) to the namespace android::ui. This is to prevent conflict with the SurfaceFlinger's internal android::DisplayMode. This is consistent with the neighboring classes which are also in the ui namespace. Also the type of the parameter defaultMode of {s,g}etDesiredDisplayModeSpecs is changed to size_t for consistency with the rest of the code. Appropriate error handling is added for this. Bug: 159590486 Bug: 179158858 Test: presubmit Change-Id: I31e5be1f2223a9ec9340789ce3dc5738eceaf40f
2021-01-06Merge "OpenGL: allow to expose EGL_NV_context_priority_realtime"TreeHugger Robot
2021-01-06OpenGL: allow to expose EGL_NV_context_priority_realtimeYiwei Zhang
Bug: 168740533 Test: manual test Change-Id: I296cc531b1299a925494776c42ddb6fb8536b6b3
2021-01-05opengl: make gl_headers available to host modulesJesse Hall
Bug: 141989085 Test: build Change-Id: I3dc40c1443c4db03ccf928dfa43263dc095a2d6c
2020-12-22Merge "Rearrange opengl llndk libraries to be next to implementations" am: ↵Colin Cross
64618017e4 am: 1fd5529a5f am: 3cd6312b91 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1532114 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I10b8edbebc93e28c58ec77743d0d0cd6da652aba
2020-12-17Rearrange opengl llndk libraries to be next to implementationsColin Cross
As an intermediate step towards removing llndk_library modules in favor of using llndk properties in the cc_library directly, move the llndk_library modules next to the cc_library modules so that the paths in the llndk_library properites are correct when Soong copies the properties into the cc_library module. Bug: 170784825 Test: m checkbuild Change-Id: I41674ad253b009d1cf528dc7b480676fb29edabd
2020-11-13Vulkan/OpenGL: log dlerror for loading updatable gfx driverYiwei Zhang
Test: build Change-Id: Ifcb57266f5d93767ba911f70695e0bbbeace98e6
2020-10-23Merge "Make the connection between implementation and llndk_library ↵Colin Cross
explicit" am: 1aba8aec4a am: 11bead39fb am: a59e1fdbad am: c6ed0c9d99 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1466883 Change-Id: I633c5b7517ba5ad0be846b0367de4f8f31774e1f
2020-10-23Merge "Make the connection between implementation and llndk_library explicit"Colin Cross
2020-10-22Merge "Update bufferOffset logic in GPU upload functions" am: 58593e6b12 am: ↵Treehugger Robot
e4a7a6a1f0 am: bf28a6571e am: e14ce96fa3 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1360890 Change-Id: I6eb970e2642248dbe4c4196cb92652f356bfdd3e
2020-10-21Merge "Update bufferOffset logic in GPU upload functions"Treehugger Robot
2020-10-19Make the connection between implementation and llndk_library explicitColin Cross
Instead of assuming a module with the .llndk suffix exists, add an llndk_stubs property to every cc_library module that has a corresponding llndk_library. Also rename the llndk_library to have an explicit .llndk suffix. Bug: 170784825 Test: no changes to build.ninja (excluding comments) or Android-${TARGET_PRODUCT}.mk Change-Id: Ic4fa093f126490394909867a08448ed886bc5955
2020-10-13OpenGL: fix initializeAnglePlatform with built-in ANGLE driverYiwei Zhang
When ANGLE namespace doesn't exist and initializeAnglePlatform is called, ANGLE driver is loaded as built-in gl driver in sphal namespace. This change fixes the fallback path here. Bug: 154237217 Test: atest CtsAngleIntegrationHostTestCases Change-Id: I0e4ecf65fac0d91b5542d475439e1e6f9541b629 Merged-In: I0e4ecf65fac0d91b5542d475439e1e6f9541b629
2020-09-26Plumb ANGLE EGL features for debugging.Peiyong Lin
Bug: b/169156341 Test: use adb shell command to verify Change-Id: Id488508d4858c4604108952fef512fa5086a2aa6
2020-09-10Fix support of different attrib_list in eglGetPlatformDisplayWoody Chow
Regression was introduced by ag/5161774, where different EGLDisplay(s) with the same display type but different attrib_list(s) would share the same egl_display_t object. Only the first EGLDisplay associated with the egl_display_t would be initialized. Bug: 162381841 Test: Run android.graphics.cts.EGL15Test in CtsGraphicsTestCases Change-Id: I4419e0f9f0d0f6491e7fae397b6c8926405ca836
2020-08-29Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I70ea776b8589ac3a7982c710c5c8b2941d86e55b Change-Id: Ic1d535e9d2d6f80d95215240dbdb024995b045f8
2020-08-14OpenGL: fix initializeAnglePlatform with built-in ANGLE driverYiwei Zhang
When ANGLE namespace doesn't exist and initializeAnglePlatform is called, ANGLE driver is loaded as built-in gl driver in sphal namespace. This change fixes the fallback path here. Bug: 154237217 Test: atest CtsAngleIntegrationHostTestCases Change-Id: I0e4ecf65fac0d91b5542d475439e1e6f9541b629
2020-08-13EGL: refactor and enforce clang-formatYiwei Zhang
Test: build, flash and boot Change-Id: Idbc4426ef485f7fc18a6a499f5933437af14fac8
2020-08-12EGL: remove redundant codes for hibernationYiwei Zhang
Test: build Change-Id: I34335eebcd69fe6c42ed16d0d927cd78af815d28
2020-08-12Expose EGL_ANDROID_native_fence_sync to the applicationsYiwei Zhang
This change also sorts the global extension lists in alphabetical order. Bug: 157518032 Test: build, compile, boot Test: EGL_ANDROID_native_fence_sync in RenderEngine dump Change-Id: I6614b9532daf7747fcadbe38744d5293cf8198b4
2020-07-29Merge "OpenGL: Use more inclusive terms" am: 303d4ecdad am: 4464572a00 am: ↵Treehugger Robot
302b6f8f50 am: 171f2e8621 am: 45f145093a Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1374795 Change-Id: I4699eec711e458ea2b3381040f71027f1deb4939
2020-07-29Merge "OpenGL: Use more inclusive terms" am: 303d4ecdad am: 4464572a00Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1374795 Change-Id: Ib0b17ff7397b2682b69b0ba1d331a64590d3816e
2020-07-28OpenGL: Use more inclusive termsYiwei Zhang
Bug: 162288333 Test: build Change-Id: I290a827e26fcd186a0461a568e41d0c50b7e19cd
2020-07-21Merge "vulkan/opengl: rename some vars and comments"Treehugger Robot
2020-07-21vulkan/opengl: rename some vars and commentsYiwei Zhang
Fixes: 159027425 Test: ./vulkan/scripts/code_generator.py and build Change-Id: I23524a0c65d0c7c31e4dc3859ce7b979f9093553 Merged-In: I23524a0c65d0c7c31e4dc3859ce7b979f9093553
2020-07-10Update bufferOffset logic in GPU upload functionsAdam Bodnar
Update JniCodeEmitter.java to do the correct pointer arithmetic for ByteBuffers passed to upload functions with position != 0 Bug: 67109954 Test: ./gen, <run printed commands>, build, flash, atest android.opengl.cts.ByteBufferTest Change-Id: I689e43b4fd40f5d4d928bf694269901d8541df33
2020-06-25Merge "opengl: Check GL_EXT_debug_marker before using it."TreeHugger Robot
2020-06-24opengl: Check GL_EXT_debug_marker before using it.Tao Wu
The old code just use eglGetProcAddress to get function pointers without checking if GL_EXT_debug_marker is supported. This doesn't work for some implementation like MESA. If GL_EXT_debug_marker isn't supported, reset those function pointers to gl_noop. Bug: 155935219 Test: manual - Run dEQP-GLES2.functional.debug_marker#random on ARCVM Change-Id: I93fa8fb419ccde46fef6dd9a2a4ec84f15db3284
2020-06-24Update to use nativehelper/JNIPlatformHelp.hOrion Hodson
Reflects refactoring of JNI helper code that depends on private methods within libnativehelper. Bug: 151443957 Test: Treehugger Change-Id: Ic174c63462da4613857c30e92739b5781dcda753 Merged-In: Ic174c63462da4613857c30e92739b5781dcda753 Exempt-From-Owner-Approval: cherry pick (cherry picked from commit aa614cc747fc5c9acf6ca3683799517ff8acc657)
2020-06-24Update to use nativehelper/JNIPlatformHelp.hOrion Hodson
Reflects refactoring of JNI helper code that depends on private methods within libnativehelper. Bug: 151443957 Test: Treehugger Change-Id: Ic174c63462da4613857c30e92739b5781dcda753 Merged-In: Ic174c63462da4613857c30e92739b5781dcda753 Exempt-From-Owner-Approval: cherry pick (cherry picked from commit aa614cc747fc5c9acf6ca3683799517ff8acc657)
2020-06-24Merge "Update to use nativehelper/JNIPlatformHelp.h"Orion Hodson