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:
Bharath Gopal 2018-01-04 17:46:53 +05:30 committed by Alain Vongsouvanh
parent 26105d8c60
commit 679188367b
1 changed files with 3 additions and 1 deletions

View File

@ -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,