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

Commit f802abe4 authored by Kevin DuBois's avatar Kevin DuBois
Browse files

hwui: ro.hwui.render_ahead=0 queue on high FPS

ro.hwui.render_ahead was behaving the same as -1 when it was set
to zero. Correct it so that ro.hwui.render_ahead will queue frames
when set to zero on any display rate FPS.

Fixes: 131340980
Test: Test presence or not of timestamps with -1,0,1,2 settings
Change-Id: Ibd1974253e947130fb03a0b86f599e0e5f5eac38
parent 25b06f04
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -153,7 +153,8 @@ void CanvasContext::setSurface(sp<Surface>&& surface) {
        mNativeSurface = nullptr;
        mNativeSurface = nullptr;
    }
    }


    if (mRenderAheadDepth == 0 && DeviceInfo::get()->getMaxRefreshRate() > 66.6f) {
    if (mRenderAheadDepth == 0 && DeviceInfo::get()->getMaxRefreshRate() > 66.6f &&
            !mFixedRenderAhead) {
        mFixedRenderAhead = false;
        mFixedRenderAhead = false;
        mRenderAheadCapacity = 1;
        mRenderAheadCapacity = 1;
    } else {
    } else {