gralloc: Fix RGB888 marked as VIDEO

RGB888 layers were marked as VIDEO and treated as YUV along the path.
If RGB888 is ever required to be a video format we need to make sure
to have other differentiation mechanisms between a UI RGB888 and a
Video RGB888 if any special handling is necessary.

Change-Id: I94c74ac10d589e20dd600db0d1e32645613b1b21
This commit is contained in:
Saurabh Shah
2014-04-08 15:28:12 -07:00
parent 867f16b54b
commit 02da5798cd

View File

@@ -175,9 +175,6 @@ void gpu_context_t::getGrallocInformationFromFormat(int inputFormat,
{ {
*bufferType = BUFFER_TYPE_VIDEO; *bufferType = BUFFER_TYPE_VIDEO;
if (inputFormat == HAL_PIXEL_FORMAT_RGB_888)
return;
if (inputFormat <= HAL_PIXEL_FORMAT_sRGB_X_8888) { if (inputFormat <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
// RGB formats // RGB formats
*bufferType = BUFFER_TYPE_UI; *bufferType = BUFFER_TYPE_UI;