gralloc1: Drop ZSL check

The gralloc1 header does not have a clearly defined ZSL mask.
Ignore the ZSL flag (which was previous just a combination of
camera read and write) and check for read/write separately

Bug: 36072030
CRs-Fixed: 2018754
Change-Id: I337df6860cf8098ef51f5affc0b8b79242e77824
This commit is contained in:
Naseer Ahmed
2017-03-12 00:45:34 -05:00
parent 699b45750b
commit d0c5bb612f

View File

@@ -446,8 +446,6 @@ int Allocator::GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage,
gr_format = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC;
} else if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) {
gr_format = HAL_PIXEL_FORMAT_NV12_ENCODEABLE; // NV12
} else if (prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_CAMERA_ZSL) {
gr_format = HAL_PIXEL_FORMAT_NV21_ZSL; // NV21 ZSL
} else if (cons_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) {
gr_format = HAL_PIXEL_FORMAT_YCrCb_420_SP; // NV21
} else if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) {