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>
This commit is contained in:
parent
dd5e782d1f
commit
bf13180ffc
5 changed files with 19 additions and 15 deletions
|
|
@ -29,3 +29,15 @@ auto Properties::IsPresentFenceNotReliable() -> bool {
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,4 +78,7 @@ class Properties {
|
|||
public:
|
||||
static auto IsPresentFenceNotReliable() -> bool;
|
||||
static auto UseConfigGroups() -> bool;
|
||||
static auto UseOverlayPlanes() -> bool;
|
||||
static auto ScaleWithGpu() -> bool;
|
||||
static auto EnableVirtualDisplay() -> bool;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue