Merge "display: Remove gralloc debug property code"

This commit is contained in:
qctecmdr
2020-02-22 08:50:23 -08:00
committed by Gerrit - the friendly Code Review server
2 changed files with 2 additions and 39 deletions

View File

@@ -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");
}

View File

@@ -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();