From 7b060c9cab2553f39ff18b7bfad652146afecbdf Mon Sep 17 00:00:00 2001 From: Andrew Sutherland Date: Fri, 17 Aug 2012 04:57:39 +0000 Subject: [PATCH] hwc: call eglSwapBuffers even when there is no list Should fix crt-off animation Change-Id: Ia38a35dcb16811337c80a3f7069d770e6eebb8a7 --- libhwcomposer/hwc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 4779a96..4719b80 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -178,6 +178,12 @@ static int hwc_set(hwc_composer_device_t *dev, UIMirrorOverlay::draw(ctx); if(ctx->mExtDisplay->getExternalDisplay()) ctx->mExtDisplay->commit(); + } else if (dpy && sur) { + EGLBoolean sucess = eglSwapBuffers((EGLDisplay)dpy, (EGLSurface)sur); + if (!sucess) { + ALOGE("%s: eglSwapBuffers() failed", __FUNCTION__); + ret = HWC_EGL_ERROR; + } } else { ctx->mOverlay->setState(ovutils::OV_CLOSED); ctx->qbuf->unlockAllPrevious();