diff options
author | Jesse Hall <jessehall@google.com> | 2013-04-04 12:59:37 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2013-04-04 12:59:37 -0700 |
commit | 2ba647e9f5249d9ed97739d29d879064e31ba34a (patch) | |
tree | cb52e55c2d6ff29b3ff86a35af324403c2b97104 /services | |
parent | 2ca79399b933935eb1b6c0ec1f746f8c4475369c (diff) | |
download | frameworks_native-2ba647e9f5249d9ed97739d29d879064e31ba34a.zip frameworks_native-2ba647e9f5249d9ed97739d29d879064e31ba34a.tar.gz frameworks_native-2ba647e9f5249d9ed97739d29d879064e31ba34a.tar.bz2 |
Actually set the virtual display output buffer.
Bug: 8316155
Change-Id: Ida1ac47e5a932fdaad3ec862e121cfe55d255699
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ 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() { |