commit | 2ba647e9f5249d9ed97739d29d879064e31ba34a | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Thu Apr 04 12:59:37 2013 -0700 |
committer | Jesse Hall <jessehall@google.com> | Thu Apr 04 12:59:37 2013 -0700 |
tree | cb52e55c2d6ff29b3ff86a35af324403c2b97104 | |
parent | 2ca79399b933935eb1b6c0ec1f746f8c4475369c [diff] |
Actually set the virtual display output buffer. Bug: 8316155 Change-Id: Ida1ac47e5a932fdaad3ec862e121cfe55d255699
diff --git a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp index d2b3edb..7e14d95 100644 --- a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp +++ b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp
@@ -76,7 +76,11 @@ if (result != NO_ERROR) return result; - return mHwc.fbPost(mDisplayId, fence, mAcquiredBuffer); + result = mHwc.fbPost(mDisplayId, fence, mAcquiredBuffer); + if (result == NO_ERROR) { + result = mHwc.setOutputBuffer(mDisplayId, fence, mAcquiredBuffer); + } + return result; } void VirtualDisplaySurface::onFrameCommitted() {