summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-17 16:18:16 -0700
committerMathias Agopian <mathias@google.com>2009-09-17 16:18:16 -0700
commitb1a1874625a6aca967601fcda53a82d8d712df45 (patch)
tree3cf96bf9cc4bf734da47e58cab3c5421e7698139 /libs/surfaceflinger/SurfaceFlinger.cpp
parentd55de40481c6ec7d8fbd1a38c80a6c66bf462a71 (diff)
downloadframeworks_base-b1a1874625a6aca967601fcda53a82d8d712df45.zip
frameworks_base-b1a1874625a6aca967601fcda53a82d8d712df45.tar.gz
frameworks_base-b1a1874625a6aca967601fcda53a82d8d712df45.tar.bz2
Android side of the fix for [2121211] Sholes has stutter during animations
a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to
Diffstat (limited to 'libs/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--libs/surfaceflinger/SurfaceFlinger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.cpp b/libs/surfaceflinger/SurfaceFlinger.cpp
index 31b5128..e87b563 100644
--- a/libs/surfaceflinger/SurfaceFlinger.cpp
+++ b/libs/surfaceflinger/SurfaceFlinger.cpp
@@ -495,6 +495,9 @@ bool SurfaceFlinger::threadLoop()
// repaint the framebuffer (if needed)
handleRepaint();
+ // inform the h/w that we're done compositing
+ hw.compositionComplete();
+
// release the clients before we flip ('cause flip might block)
unlockClients();