Actually set the virtual display output buffer.

Bug: 8316155
Change-Id: Ida1ac47e5a932fdaad3ec862e121cfe55d255699
This commit is contained in:
Jesse Hall 2013-04-04 12:59:37 -07:00
parent 2ca79399b9
commit 2ba647e9f5

View File

@ -76,7 +76,11 @@ status_t VirtualDisplaySurface::advanceFrame() {
if (result != NO_ERROR) if (result != NO_ERROR)
return result; 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() { void VirtualDisplaySurface::onFrameCommitted() {