OSDN Git Service

Revert "Revert "Emulator: create host color buffer for Vedio encoder""
authorBo Hu <bohu@google.com>
Tue, 9 Aug 2016 01:09:06 +0000 (01:09 +0000)
committerBo Hu <bohu@google.com>
Tue, 9 Aug 2016 01:09:06 +0000 (01:09 +0000)
This reverts commit 1a80c227edbc86ae585276a0b7c45e28458813f1.

Change-Id: I484c2092e30d23038f3a6ffbdf646960747b54b4

system/gralloc/gralloc.cpp

index b11e908..a5920cd 100644 (file)
@@ -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 |