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

Commit 7fbca4cc authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

surfaceflinger: Less aggressive HDMI rotation on LGE star

Commit 414d4864 (surfaceflinger:
Update star HDMI rotation for new userspace) added a rotation
setting for every drawn frame, which is overkill. Setting the
display rotation when the orientation changes is sufficient.

Change-Id: I9882cf2756481e9f88e5b52adbd5a87f86d85623
parent 0a3f4ff8
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -421,10 +421,6 @@ bool SurfaceFlinger::threadLoop()
        logger.log(GraphicLog::SF_SWAP_BUFFERS, index);
        postFramebuffer();

#ifdef USE_LGE_HDMI
        NvDispMgrAutoOrientation(mCurrentState.orientation);
#endif

        logger.log(GraphicLog::SF_REPAINT_DONE, index);
    } else {
        // pretend we did the post
@@ -1190,6 +1186,9 @@ int SurfaceFlinger::setOrientation(DisplayID dpy,
        if (uint32_t(orientation)<=eOrientation270 || orientation==42) {
            mCurrentState.orientationType = flags;
            mCurrentState.orientation = orientation;
#ifdef USE_LGE_HDMI
            NvDispMgrAutoOrientation(mCurrentState.orientation);
#endif
            setTransactionFlags(eTransactionNeeded);
            mTransactionCV.wait(mStateLock);
        } else {