summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-11-05 16:12:31 -0800
committerJesse Hall <jessehall@google.com>2013-11-05 16:27:14 -0800
commitf7a675837bdad03d398c9b6f0f593b9c51c679b5 (patch)
treeccb1b787700b08026173ecffd3ada1058702c8e4
parentee874caa81ad48d6d0ee34509d3050ca9c046676 (diff)
downloadnative-f7a675837bdad03d398c9b6f0f593b9c51c679b5.tar.gz
Provide virtual display output buffer to HWC in prepare
We were already making sure the HWComposer class had the handle before prepare, but it wasn't passing the handle along to HWC as intended. Partial fix for bug: 11430248 Change-Id: I25f672c4fdfaa6a81fe0acb24d9ad05153ee17dc
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index 2469f0cf61..c7d1a903e4 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -605,7 +605,7 @@ status_t HWComposer::prepare() {
mLists[i] = disp.list;
if (mLists[i]) {
if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_3)) {
- mLists[i]->outbuf = NULL;
+ mLists[i]->outbuf = disp.outbufHandle;
mLists[i]->outbufAcquireFenceFd = -1;
} else if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_1)) {
// garbage data to catch improper use