summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
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
commit85b6f7afeab61b75e4326639a9f4cb61523ea997 (patch)
tree4f296a8e2b300bc7cf10a4ebba1a1b8daa3a6e9a /services/surfaceflinger/Layer.cpp
parent03badbaa7552ed3b1efcab282c7c3c352a3bb6ef (diff)
parent3599bf2c0727bc33e8136f5163eee6f398545e05 (diff)
downloadframeworks_native-85b6f7afeab61b75e4326639a9f4cb61523ea997.zip
frameworks_native-85b6f7afeab61b75e4326639a9f4cb61523ea997.tar.gz
frameworks_native-85b6f7afeab61b75e4326639a9f4cb61523ea997.tar.bz2
Merge "SurfaceFlinger: use the HWC gralloc usage bit"
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-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;
}