update video overlay flags
authorJiyu Yang <jiyu.yang@amlogic.com>
Mon, 19 Oct 2015 16:17:09 +0000 (00:17 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Mon, 19 Oct 2015 16:20:04 +0000 (00:20 +0800)
Change-Id: Ie4db195a80c69a6c6d4bb716e49a87c4a9de27db
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
t83x/android/gralloc/src/alloc_device.cpp

index 1519795020c2c674b7f58ccc84366ab08121ee52..28e8a54ec2d0722a92149235ca4bd6b9bf51adfa 100755 (executable)
@@ -973,6 +973,10 @@ static int alloc_device_alloc(alloc_device_t* dev, int w, int h, int format, int
                        hnd->yuv_info = MALI_YUV_BT709_WIDE;
                        break;
        }
+       if (usage & GRALLOC_USAGE_AML_VIDEO_OVERLAY)
+       {
+               hnd->flags |= private_handle_t::PRIV_FLAGS_VIDEO_OVERLAY;
+       }
 
        hnd->width = w;
        hnd->height = h;