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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user