display: Remove gralloc debug property code
querySDEInfo is an unused function and can be removed. CRs-Fixed: 2619084 Change-Id: I2857e1c8c77a48697c83af421cd3a8e3a92ec7ee
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013, 2018, 2020 The Linux Foundation. All rights reserved.
|
||||
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
@@ -84,30 +84,6 @@ static int getExternalNode(const char *type) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int querySDEInfoDRM(HWQueryType type, int *value) {
|
||||
char property[PROPERTY_VALUE_MAX] = {0};
|
||||
|
||||
// TODO(user): If future targets don't support WB UBWC, add separate
|
||||
// properties in target specific system.prop and have clients like WFD
|
||||
// directly rely on those.
|
||||
switch(type) {
|
||||
case HAS_UBWC:
|
||||
case HAS_WB_UBWC: // WFD stack still uses this
|
||||
*value = 1;
|
||||
property_get(DISABLE_UBWC_PROP, property, "0");
|
||||
if(!(strncmp(property, "1", PROPERTY_VALUE_MAX)) ||
|
||||
!(strncmp(property, "true", PROPERTY_VALUE_MAX))) {
|
||||
*value = 0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ALOGE("Invalid query type %d", type);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int querySDEInfoFB(HWQueryType type, int *value) {
|
||||
FILE *fileptr = NULL;
|
||||
const char *featureName;
|
||||
@@ -158,18 +134,6 @@ static int querySDEInfoFB(HWQueryType type, int *value) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int querySDEInfo(HWQueryType type, int *value) {
|
||||
if (!value) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (getDriverType() == DriverType::DRM) {
|
||||
return querySDEInfoDRM(type, value);
|
||||
}
|
||||
|
||||
return querySDEInfoFB(type, value);
|
||||
}
|
||||
|
||||
int getHDMINode(void) {
|
||||
return getExternalNode("dtv panel");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2013, 2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (C) 2013, 2017, 2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
@@ -58,7 +58,6 @@ enum {
|
||||
MAX_STRING_LENGTH = 1024,
|
||||
};
|
||||
|
||||
int querySDEInfo(HWQueryType type, int *value);
|
||||
int getEdidRawData(char *buffer);
|
||||
int getHDMINode(void);
|
||||
bool isDPConnected();
|
||||
|
||||
Reference in New Issue
Block a user