hwc: call eglSwapBuffers even when there is no list

Should fix crt-off animation

Change-Id: Ia38a35dcb16811337c80a3f7069d770e6eebb8a7
This commit is contained in:
Andrew Sutherland 2012-08-17 04:57:39 +00:00
parent 384a5b2709
commit 7b060c9cab

View File

@ -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();