gralloc: Remove unsupported formats

- Remove RAW_SENSOR in favor of RAW16
- Remove use of sRGB format enums

Change-Id: I189a168f75a5573648aebdde3bbacb90f4cdc354
This commit is contained in:
Ajay Dudani
2015-03-26 07:28:11 -07:00
committed by Arun Kumar K.R
parent d5070a63bb
commit 4dc06493ae
2 changed files with 6 additions and 14 deletions

View File

@@ -189,7 +189,7 @@ void gpu_context_t::getGrallocInformationFromFormat(int inputFormat,
{
*bufferType = BUFFER_TYPE_VIDEO;
if (inputFormat <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
if (inputFormat <= HAL_PIXEL_FORMAT_BGRA_8888) {
// RGB formats
*bufferType = BUFFER_TYPE_UI;
} else if ((inputFormat == HAL_PIXEL_FORMAT_R_8) ||