aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Hu <bohu@google.com>2016-08-09 01:09:06 +0000
committerBo Hu <bohu@google.com>2016-08-09 01:09:06 +0000
commit7579c85fbe246ffb2d994648b774f7e324b4fff4 (patch)
tree91a07d4ee4bae581de054ddde2c883688b486c76
parent1a80c227edbc86ae585276a0b7c45e28458813f1 (diff)
downloadgoldfish-opengl-7579c85fbe246ffb2d994648b774f7e324b4fff4.tar.gz
Revert "Revert "Emulator: create host color buffer for Vedio encoder""
This reverts commit 1a80c227edbc86ae585276a0b7c45e28458813f1. Change-Id: I484c2092e30d23038f3a6ffbdf646960747b54b4
-rw-r--r--system/gralloc/gralloc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp
index b11e908c..a5920cd3 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 |