sdm: Remove unused property from gralloc

am: 171ab80f52

Change-Id: Ia76148e074632eee120051cf8d81d703c7ff3157
This commit is contained in:
Madhuri Athota 2017-08-18 01:10:23 +00:00 committed by android-build-merger
commit becae992d5
2 changed files with 2 additions and 23 deletions

View File

@ -143,14 +143,6 @@ void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
if (format <= HAL_PIXEL_FORMAT_BGRA_8888) {
aligned_w = ALIGN(width, 32);
aligned_h = ALIGN(height, 32);
// Don't add any additional padding if debug.gralloc.map_fb_memory
// is enabled
char property[PROPERTY_VALUE_MAX];
if((property_get("debug.gralloc.map_fb_memory", property, NULL) > 0) &&
(!strncmp(property, "1", PROPERTY_VALUE_MAX ) ||
(!strncasecmp(property,"true", PROPERTY_VALUE_MAX )))) {
return;
}
int bpp = 4;
switch(format)

View File

@ -313,22 +313,9 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
return -EINVAL;
size = (bufferSize >= size)? bufferSize : size;
bool useFbMem = false;
char property[PROPERTY_VALUE_MAX];
if((usage & GRALLOC_USAGE_HW_FB) &&
(property_get("debug.gralloc.map_fb_memory", property, NULL) > 0) &&
(!strncmp(property, "1", PROPERTY_VALUE_MAX ) ||
(!strncasecmp(property,"true", PROPERTY_VALUE_MAX )))) {
useFbMem = true;
}
int err = 0;
if(useFbMem) {
err = gralloc_alloc_framebuffer(usage, pHandle);
} else {
err = gralloc_alloc_buffer(size, usage, pHandle, bufferType,
grallocFormat, alignedw, alignedh);
}
err = gralloc_alloc_buffer(size, usage, pHandle, bufferType,
grallocFormat, alignedw, alignedh);
if (err < 0) {
return err;