summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-06-05 12:31:31 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-05 12:31:31 -0700
commit34e5f5a534d915f253ae51cbcfe15c12e25a78a4 (patch)
tree147ecd3055f6f3a1689f730ce6c9733ef1dad336 /libs
parent4a683a343083ec2b8aed1ee63669dbade6c0379f (diff)
parent3676b137ecf2f24e88e8a3567c11234e7d4416d2 (diff)
downloadframeworks_base-34e5f5a534d915f253ae51cbcfe15c12e25a78a4.zip
frameworks_base-34e5f5a534d915f253ae51cbcfe15c12e25a78a4.tar.gz
frameworks_base-34e5f5a534d915f253ae51cbcfe15c12e25a78a4.tar.bz2
am 3676b137: Merge "Add more temporary logging for investigating detachFunctor" into jb-dev
* commit '3676b137ecf2f24e88e8a3567c11234e7d4416d2': Add more temporary logging for investigating detachFunctor
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 2dc9726..c5fedba 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -262,7 +262,10 @@ void OpenGLRenderer::resume() {
}
void OpenGLRenderer::detachFunctor(Functor* functor) {
- mFunctors.remove(functor);
+ int size = mFunctors.size();
+ int remove = mFunctors.remove(functor);
+ ALOGD("OGLR %p detachFunctor %p, removed at index %d of %d",
+ this, functor, remove, size);
}
void OpenGLRenderer::attachFunctor(Functor* functor) {
@@ -309,7 +312,7 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) {
status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
interrupt();
- detachFunctor(functor);
+ mFunctors.remove(functor);
if (mDirtyClip) {
setScissorFromClip();