summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-08-24 15:12:04 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-24 15:12:04 -0700
commit011833c308f68928a024de71ee89c0db1c491570 (patch)
treecf71ba1b4a7d84614474ce907eed0c528383fa6e /services/surfaceflinger
parent5af1729f26d56c2731c2fb49e65b196db9742d54 (diff)
parentd52c14df02a0d6db42f643e80e248b52fe5e2fdd (diff)
downloadframeworks_base-011833c308f68928a024de71ee89c0db1c491570.zip
frameworks_base-011833c308f68928a024de71ee89c0db1c491570.tar.gz
frameworks_base-011833c308f68928a024de71ee89c0db1c491570.tar.bz2
Merge "SurfaceFlinger: use the HWC gralloc usage bit"
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/Layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 8b2485a..f8925b8 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -556,6 +556,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;
}