summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/BootAnimation.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-04-17 19:36:26 -0700
committer Mathias Agopian <mathias@google.com> 2009-04-24 15:00:41 -0700
commit9a11206fe793363c0e8897b478cbe6ef8c52b543 (patch)
tree0b7fc29027a6803e1ab992f47f0dd66c2a3e3843 /libs/surfaceflinger/BootAnimation.cpp
parent9f88afb013a7560bf1362d7999a4609e38d0ea77 (diff)
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()
Diffstat (limited to 'libs/surfaceflinger/BootAnimation.cpp')
-rw-r--r--libs/surfaceflinger/BootAnimation.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}