diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-17 16:18:16 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-17 16:18:16 -0700 |
commit | 74faca212e2675aa55a30235c77cb6403471a4b9 (patch) | |
tree | 4b990a9f0234ad504cce9e5734a978e940335945 /libs/ui/FramebufferNativeWindow.cpp | |
parent | 1147de42a21f0d4f6873c63f22a4cdd1e4889088 (diff) | |
download | frameworks_native-74faca212e2675aa55a30235c77cb6403471a4b9.zip frameworks_native-74faca212e2675aa55a30235c77cb6403471a4b9.tar.gz frameworks_native-74faca212e2675aa55a30235c77cb6403471a4b9.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/ui/FramebufferNativeWindow.cpp')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 90b5163..fc2e2f6 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -158,6 +158,14 @@ status_t FramebufferNativeWindow::setUpdateRectangle(const Rect& r) return fbDev->setUpdateRect(fbDev, r.left, r.top, r.width(), r.height()); } +status_t FramebufferNativeWindow::compositionComplete() +{ + if (fbDev->compositionComplete) { + return fbDev->compositionComplete(fbDev); + } + return INVALID_OPERATION; +} + int FramebufferNativeWindow::setSwapInterval( android_native_window_t* window, int interval) { |