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

Commit b5d69762 authored by John Reck's avatar John Reck Committed by Luca Stefani
Browse files

Increase dequeueBuffer timeout

Timeout recovery isn't working properly, so increase it
to avoid any false-positives from something like a
slow screen-on

Bug: 137509524
Test: none
Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
Merged-In: Ic4fae04b41f71600479f9557e334f67c27851db4
parent c0365f1c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -148,7 +148,8 @@ void CanvasContext::setSurface(sp<Surface>&& surface) {

    if (surface) {
        mNativeSurface = new ReliableSurface{std::move(surface)};
        mNativeSurface->setDequeueTimeout(500_ms);
        // TODO: Fix error handling & re-shorten timeout
        mNativeSurface->setDequeueTimeout(4000_ms);
    } else {
        mNativeSurface = nullptr;
    }