Revert "hwc: call eglSwapBuffers even when there is no list"

This reverts commit 7b060c9cab.
*causes blank draws, revisit someday
This commit is contained in:
Andrew Sutherland 2012-09-07 21:58:21 -05:00
parent 857f8a5f0b
commit 54cbb6f94f

View File

@ -178,12 +178,6 @@ 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();