make sure to call compositionComplete after taking a screenshot
older drivers which are doing implicit synchronization need this or they could deadlock. Bug: 8341885 Change-Id: Icd980a6be16071678d6151e34725b3c1c547d7ee
This commit is contained in:
parent
7589b2a797
commit
d577641411
@ -2720,6 +2720,9 @@ status_t SurfaceFlinger::captureScreenImplLocked(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// compositionComplete is needed for older driver
|
||||||
|
hw->compositionComplete();
|
||||||
|
|
||||||
// and finishing things up...
|
// and finishing things up...
|
||||||
if (eglSwapBuffers(mEGLDisplay, eglSurface) != EGL_TRUE) {
|
if (eglSwapBuffers(mEGLDisplay, eglSurface) != EGL_TRUE) {
|
||||||
ALOGE("captureScreenImplLocked: eglSwapBuffers() failed 0x%4x",
|
ALOGE("captureScreenImplLocked: eglSwapBuffers() failed 0x%4x",
|
||||||
|
Loading…
Reference in New Issue
Block a user