summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-05-22 17:20:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-22 17:20:07 -0700
commit3534e13486a0081b1229e698f13bd3a37efa3fb0 (patch)
treec2efe65a2e556c6559745e41e7379e8d9435e805 /libs
parent2d243bc62a899f7af77886a2a2a82872d63226bb (diff)
parent9e08012869f77f212186a5d5856831a85fb73d40 (diff)
downloadframeworks_base-3534e13486a0081b1229e698f13bd3a37efa3fb0.zip
frameworks_base-3534e13486a0081b1229e698f13bd3a37efa3fb0.tar.gz
frameworks_base-3534e13486a0081b1229e698f13bd3a37efa3fb0.tar.bz2
Merge "Avoid crash if onDetachedFromWindow called after destroy" into jb-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 3757cf0..2a8b32c 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -262,7 +262,6 @@ void OpenGLRenderer::resume() {
}
void OpenGLRenderer::detachFunctor(Functor* functor) {
- ALOGD("opengl renderer %p detaching functor %p", this, functor);
mFunctors.remove(functor);
}
@@ -310,7 +309,7 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) {
status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
interrupt();
- mFunctors.remove(functor);
+ detachFunctor(functor);
if (mDirtyClip) {
setScissorFromClip();