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

Commit b5405b17 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Drop less aggressively am: a3d795a3 am: 62ec371a

am: fd6bf887

Change-Id: I4a6bd075a1989b942c2531048d5d5335a24874f4
parents 9a96d592 fd6bf887
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -200,6 +200,8 @@ static bool wasSkipped(FrameInfo* info) {
}

bool CanvasContext::isSwapChainStuffed() {
    static const auto SLOW_THRESHOLD = 6_ms;

    if (mSwapHistory.size() != mSwapHistory.capacity()) {
        // We want at least 3 frames of history before attempting to
        // guess if the queue is stuffed
@@ -210,8 +212,8 @@ bool CanvasContext::isSwapChainStuffed() {

    // Was there a happy queue & dequeue time? If so, don't
    // consider it stuffed
    if (swapA.dequeueDuration < 3_ms
            && swapA.queueDuration < 3_ms) {
    if (swapA.dequeueDuration < SLOW_THRESHOLD
            && swapA.queueDuration < SLOW_THRESHOLD) {
        return false;
    }

@@ -226,8 +228,8 @@ bool CanvasContext::isSwapChainStuffed() {

        // Was there a happy queue & dequeue time? If so, don't
        // consider it stuffed
        if (swapB.dequeueDuration < 3_ms
                && swapB.queueDuration < 3_ms) {
        if (swapB.dequeueDuration < SLOW_THRESHOLD
                && swapB.queueDuration < SLOW_THRESHOLD) {
            return false;
        }