Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f6bc5f9 authored by Giulio Cervera's avatar Giulio Cervera Committed by Gerrit Code Review
Browse files

Merge "SurfaceFlinger: Dont skip composition if it is incomplete." into ics

parents 5d22ce3d 80139298
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -487,6 +487,13 @@ bool SurfaceFlinger::threadLoop()
        // pretend we did the post
        hw.compositionComplete();
        usleep(16667); // 60 fps period

#ifdef QCOM_HARDWARE
        //If the draw is skipped by any chance, we need to force
        //composition atleast once.
        HWComposer& hwc(hw.getHwComposer());
        hwc.perform(EVENT_FORCE_COMPOSITION, 1);
#endif
    }
    return true;
}