From b7d87c40ef3f922fb10f6a4f24e6e1437ab3c7ae Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 21 Nov 2011 16:51:47 -0800 Subject: [PATCH] SurfaceMediaSource: use the vid enc usage bit This change makes SurfaceMediaSource add the VIDEO_ENC usage bit when allocating its GraphicBuffers rather than the HW_TEXTURE bit. Change-Id: Ie20e225c894fdbc31cad6bb82b3b64c7e98074eb --- include/ui/GraphicBuffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h index b9deafcd3..6ab01f4c9 100644 --- a/include/ui/GraphicBuffer.h +++ b/include/ui/GraphicBuffer.h @@ -63,6 +63,7 @@ public: USAGE_HW_RENDER = GRALLOC_USAGE_HW_RENDER, USAGE_HW_2D = GRALLOC_USAGE_HW_2D, USAGE_HW_COMPOSER = GRALLOC_USAGE_HW_COMPOSER, + USAGE_HW_VIDEO_ENCODER = GRALLOC_USAGE_HW_VIDEO_ENCODER, USAGE_HW_MASK = GRALLOC_USAGE_HW_MASK };