drm_hwcomposer: treewide: Handle bool properties in the Property class
To clean things up and unify the usage of properties.
Change-Id: I0e034ed309f5f8a0d4fc9be7a4a3edcb39050e7f
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/utils/properties.cpp b/utils/properties.cpp
index a855c94..5ba109b 100644
--- a/utils/properties.cpp
+++ b/utils/properties.cpp
@@ -29,3 +29,15 @@
auto Properties::UseConfigGroups() -> bool {
return (property_get_bool("ro.vendor.hwc.drm.use_config_groups", 1) != 0);
}
+
+auto Properties::UseOverlayPlanes() -> bool {
+ return (property_get_bool("ro.vendor.hwc.use_overlay_planes", 1) != 0);
+}
+
+auto Properties::ScaleWithGpu() -> bool {
+ return (property_get_bool("vendor.hwc.drm.scale_with_gpu", 0) != 0);
+}
+
+auto Properties::EnableVirtualDisplay() -> bool {
+ return (property_get_bool("vendor.hwc.drm.enable_virtual_display", 0) != 0);
+}