From a6c80ca245dace759be6e0dc0ae4d6a6c09c7a84 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Thu, 28 Jul 2011 13:53:30 -0700 Subject: Fix usage bits reported by OMX IL. This change fixes the Gralloc usage bits that are reported to Stagefright. It removes the PROTECTED bit, which was not needed, and sets the SW_WRITE_OFTEN bit so that the decoder can lock and write to the buffers using the CPU. Change-Id: Id648cbef3451cea704b63a0bde9e5d2ba09f0ef0 Bug: 5091835 --- sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sec_mm') diff --git a/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp b/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp index ea96e6f..d3ba70f 100644 --- a/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp +++ b/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp @@ -194,7 +194,7 @@ OMX_ERRORTYPE getAndroidNativeBuffer(OMX_HANDLETYPE hComponent, OMX_PTR Componen pganbp = (GetAndroidNativeBufferUsageParams *)ComponentParameterStructure; - pganbp->nUsage = GRALLOC_USAGE_PROTECTED; /* Need Change */ + pganbp->nUsage = GRALLOC_USAGE_SW_WRITE_OFTEN; ret = OMX_ErrorNone; @@ -423,4 +423,3 @@ EXIT: } #endif - -- cgit v1.1