summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-01-25 14:46:27 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-25 14:46:27 -0800
commit63e4bba51501f9a6f27beccaae7f8e0b78ac767c (patch)
treebdf96fc7242cd1b93ba9e5e079182d61e2b3ff60 /services/surfaceflinger
parent59f71e7feb9034c61cf531031063396d0fb97176 (diff)
parent78bd4f68a9e8928b626e0e4dd2f91484de544fa1 (diff)
downloadframeworks_native-63e4bba51501f9a6f27beccaae7f8e0b78ac767c.zip
frameworks_native-63e4bba51501f9a6f27beccaae7f8e0b78ac767c.tar.gz
frameworks_native-63e4bba51501f9a6f27beccaae7f8e0b78ac767c.tar.bz2
am 043a3cdd: Merge "workaround [3201922] display not on: log full of gralloc errors (DO NOT MERGE)" into gingerbread
* commit '043a3cddf67e2baf38711bcb125084599f8f9802': workaround [3201922] display not on: log full of gralloc errors (DO NOT MERGE)
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index af0f95a..664e5ad 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -406,6 +406,7 @@ bool SurfaceFlinger::threadLoop()
logger.log(GraphicLog::SF_REPAINT_DONE, index);
} else {
// pretend we did the post
+ hw.compositionComplete();
unlockClients();
usleep(16667); // 60 fps period
}
@@ -2172,6 +2173,9 @@ status_t SurfaceFlinger::captureScreenImplLocked(DisplayID dpy,
glBindFramebufferOES(GL_FRAMEBUFFER_OES, 0);
glDeleteRenderbuffersOES(1, &tname);
glDeleteFramebuffersOES(1, &name);
+
+ hw.compositionComplete();
+
return result;
}