Merge "Actually set the virtual display output buffer." into jb-mr2-dev

This commit is contained in:
Jesse Hall 2013-04-06 03:31:49 +00:00 committed by Android (Google) Code Review
commit d5e345b0cf
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,11 @@ status_t VirtualDisplaySurface::advanceFrame() {
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() {