diff options
author | Jamie Gennis <jgennis@google.com> | 2011-08-10 11:48:07 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-08-22 14:56:29 -0700 |
commit | 3599bf2c0727bc33e8136f5163eee6f398545e05 (patch) | |
tree | beca7f4430aecb34117b24088a9f0cc99f0b701d /services | |
parent | c2d9862c859eb61afccf93ba2824136b6bb7a987 (diff) | |
download | frameworks_native-3599bf2c0727bc33e8136f5163eee6f398545e05.zip frameworks_native-3599bf2c0727bc33e8136f5163eee6f398545e05.tar.gz frameworks_native-3599bf2c0727bc33e8136f5163eee6f398545e05.tar.bz2 |
SurfaceFlinger: use the HWC gralloc usage bit
This change makes SurfaceFlinger always use the
GRALLOC_USAGE_HW_COMPOSER usage bit when allocating buffers that may be
passed to the HWComposer.
Change-Id: I70362a8ede2b359fb2046853f85149d597465817
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 19c7ddd..853975a 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -559,6 +559,7 @@ uint32_t Layer::getEffectiveUsage(uint32_t usage) const // need a hardware-protected path to external video sink usage |= GraphicBuffer::USAGE_PROTECTED; } + usage |= GraphicBuffer::USAGE_HW_COMPOSER; return usage; } |