From: Bo Hu Date: Tue, 9 Aug 2016 01:09:06 +0000 (+0000) Subject: Revert "Revert "Emulator: create host color buffer for Vedio encoder"" X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7579c85fbe246ffb2d994648b774f7e324b4fff4;p=android-x86%2Fdevice-generic-goldfish-opengl.git Revert "Revert "Emulator: create host color buffer for Vedio encoder"" This reverts commit 1a80c227edbc86ae585276a0b7c45e28458813f1. Change-Id: I484c2092e30d23038f3a6ffbdf646960747b54b4 --- diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp index b11e908..a5920cd 100644 --- a/system/gralloc/gralloc.cpp +++ b/system/gralloc/gralloc.cpp @@ -369,6 +369,7 @@ static int gralloc_alloc(alloc_device_t* dev, #if PLATFORM_SDK_VERSION >= 15 if (usage & (GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_2D | GRALLOC_USAGE_HW_COMPOSER | + GRALLOC_USAGE_HW_VIDEO_ENCODER | GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_SW_READ_MASK) ) { #else // PLATFORM_SDK_VERSION if (usage & (GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_RENDER |