From e49b696a35dc6fd9a7ca42855620f2f88dffa405 Mon Sep 17 00:00:00 2001 From: Yin-Chia Yeh Date: Tue, 14 Jul 2015 12:15:29 -0700 Subject: [PATCH] graphics: update flexible YUV format gralloc requirement Require gralloc accept flexible YUV when SW READ/WRITE usage is set. Also decouple flexible YUV from camera usage flag. Bug: 22379456 Change-Id: I5a82a8360b08036c31dc03cd639d449ba1e3ed01 --- include/system/graphics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/system/graphics.h b/include/system/graphics.h index ff3fd88d9..afd9f7bdb 100644 --- a/include/system/graphics.h +++ b/include/system/graphics.h @@ -370,7 +370,7 @@ enum { * struct android_ycbcr (below) is the the struct used to describe it. * * This format must be accepted by the gralloc module when - * USAGE_HW_CAMERA_WRITE and USAGE_SW_READ_* are set. + * USAGE_SW_WRITE_* or USAGE_SW_READ_* are set. * * This format is locked for use by gralloc's (*lock_ycbcr) method, and * locking with the (*lock) method will return an error.