am d5776414: make sure to call compositionComplete after taking a screenshot

* commit 'd577641411f067c93aabcd2acf7ce06862fb26d3':
  make sure to call compositionComplete after taking a screenshot
This commit is contained in:
Mathias Agopian 2013-03-08 22:46:55 +00:00 committed by Android Git Automerger
commit b1beeb4ab9

View File

@ -2720,6 +2720,9 @@ status_t SurfaceFlinger::captureScreenImplLocked(
}
}
// compositionComplete is needed for older driver
hw->compositionComplete();
// and finishing things up...
if (eglSwapBuffers(mEGLDisplay, eglSurface) != EGL_TRUE) {
ALOGE("captureScreenImplLocked: eglSwapBuffers() failed 0x%4x",