From b1a1874625a6aca967601fcda53a82d8d712df45 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 17 Sep 2009 16:18:16 -0700 Subject: 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 --- libs/ui/FramebufferNativeWindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ui/FramebufferNativeWindow.cpp') diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 90b51634c60c..fc2e2f650700 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) { -- cgit v1.2.3-59-g8ed1b