1
0
Fork 0
android_external_drm_hwcomp.../utils
Paz Zcharya 9c41b68d08 drm_hwcomposer: Fix build failure on Linux-native targets
Commit e11f723f ("drm_hwcomposer: Query property when checking virtual
displays availability") introduced a call to
android::base::GetBoolProperty, which is only available in Android.
This caused the test "hwcomposer.filegroups_build_test" to fail because
the code was no longer compiling for Linux-native targets.

Fix that by replacing "android::base::GetBoolProperty" with a new
function "property_get_bool," and define the function for both Android
and non-Android targets:
For Android, utilize the existing function from <cutils/properties.h>
For other targets, a new implementation is provided in
utils/properties.h.

Fixes: e11f723f ("drm_hwcomposer: Query property when checking virtual
displays availability")

Signed-off-by: Paz Zcharya <pazz@google.com>
2024-11-05 20:10:45 +00:00
..
fd.cpp drm_hwcomposer: Introduce SharedFd, use standard c++ RAII for UniqueFd 2023-01-16 20:13:58 +02:00
fd.h drm_hwcomposer: Introduce SharedFd, use standard c++ RAII for UniqueFd 2023-01-16 20:13:58 +02:00
log.h drm_hwcomposer: Use pragma once instead of include guards 2022-12-10 20:37:34 +02:00
properties.h drm_hwcomposer: Fix build failure on Linux-native targets 2024-11-05 20:10:45 +00:00
UEvent.h drm_hwcomposer: Stop UEvent thread in ResourceManager destructor 2024-08-30 22:15:14 +00:00