From d577641411f067c93aabcd2acf7ce06862fb26d3 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 8 Mar 2013 13:54:46 -0800 Subject: [PATCH] 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 --- services/surfaceflinger/SurfaceFlinger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 0ad471bed..5939dc85f 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -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",