OSDN Git Service

Provide virtual display output buffer to HWC in prepare
authorJesse Hall <jessehall@google.com>
Wed, 6 Nov 2013 00:12:31 +0000 (16:12 -0800)
committerJesse Hall <jessehall@google.com>
Wed, 6 Nov 2013 00:27:14 +0000 (16:27 -0800)
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

services/surfaceflinger/DisplayHardware/HWComposer.cpp

index 2469f0c..c7d1a90 100644 (file)
@@ -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