From 9a11206fe793363c0e8897b478cbe6ef8c52b543 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Fri, 17 Apr 2009 19:36:26 -0700 Subject: more Surface lifetime management Surfaces are now destroyed once all references from the clients are gone, but they go through a partial destruction as soon as the window manager requests it. This last part is still buggy. see comments in SurfaceFlinger::destroySurface() --- libs/surfaceflinger/BootAnimation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/surfaceflinger/BootAnimation.cpp') diff --git a/libs/surfaceflinger/BootAnimation.cpp b/libs/surfaceflinger/BootAnimation.cpp index 519b112285..ee36b6703a 100644 --- a/libs/surfaceflinger/BootAnimation.cpp +++ b/libs/surfaceflinger/BootAnimation.cpp @@ -179,6 +179,7 @@ bool BootAnimation::threadLoop() { eglMakeCurrent(mDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglDestroyContext(mDisplay, mContext); eglDestroySurface(mDisplay, mSurface); + mFlingerSurface.clear(); mFlingerSurfaceControl.clear(); return r; } -- cgit v1.2.3-59-g8ed1b