hwc2: Determine virtual display presence based on target specific property
GetMaxVirtualDisplayCount returns a hard-coded value. Return virtual display count based on a property that is target specific. Return a value of 1 by default when the property is not found in the target device. Bug: 79541227 Change-Id: I4c9727ad1687fc7e53c89ce5e41973628022acec
This commit is contained in:
parent
26105d8c60
commit
679188367b
|
@ -491,7 +491,9 @@ static int32_t GetHdrCapabilities(hwc2_device_t* device, hwc2_display_t display,
|
|||
}
|
||||
|
||||
static uint32_t GetMaxVirtualDisplayCount(hwc2_device_t *device) {
|
||||
return 1;
|
||||
char property[PROPERTY_VALUE_MAX];
|
||||
property_get("debug.sdm.support_writeback", property, "1");
|
||||
return (uint32_t) atoi(property);
|
||||
}
|
||||
|
||||
static int32_t GetReleaseFences(hwc2_device_t *device, hwc2_display_t display,
|
||||
|
|
Loading…
Reference in New Issue