From 2ba647e9f5249d9ed97739d29d879064e31ba34a Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Thu, 4 Apr 2013 12:59:37 -0700 Subject: [PATCH] Actually set the virtual display output buffer. Bug: 8316155 Change-Id: Ida1ac47e5a932fdaad3ec862e121cfe55d255699 --- .../DisplayHardware/VirtualDisplaySurface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp index d2b3edb58..7e14d955a 100644 --- a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp +++ b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp @@ -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() {