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

Commit c185192c authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

libgui: reset mEnableFrameTimestamps when Surface disconnects

Bug: 134185757
Test: build, flash and boot
Change-Id: Ibe2ae9636bd0bf2beb6ab9e3c6a9a81e3fc7442a
parent 13db07b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1354,6 +1354,7 @@ int Surface::disconnect(int api, IGraphicBufferProducer::DisconnectMode mode) {
        mTransform = 0;
        mStickyTransform = 0;
        mAutoPrerotation = false;
        mEnableFrameTimestamps = false;

        if (api == NATIVE_WINDOW_API_CPU) {
            mConnectedToCpu = false;