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

Commit 414d4864 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

surfaceflinger: Update star HDMI rotation for new userspace

Change-Id: I24d3122387d327c954ea72007f6255caf65d2803
parent f6152e2c
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -68,9 +68,6 @@
#define DISPLAY_COUNT       1

#ifdef USE_LGE_HDMI
extern "C" void MainRegisterHPD();
extern "C" void MainUnRegisterHPD();
extern "C" void NvDispMgrPreAutoOrientation(int rotation);
extern "C" void NvDispMgrAutoOrientation(int rotation);
#endif

@@ -110,9 +107,6 @@ SurfaceFlinger::SurfaceFlinger()
        mUseDithering(true)
{
    init();
#ifdef USE_LGE_HDMI
    MainRegisterHPD();
#endif
}

void SurfaceFlinger::init()
@@ -146,9 +140,6 @@ void SurfaceFlinger::init()
SurfaceFlinger::~SurfaceFlinger()
{
    glDeleteTextures(1, &mWormholeTexName);
#ifdef USE_LGE_HDMI
    MainUnRegisterHPD();
#endif
}

overlay_control_device_t* SurfaceFlinger::getOverlayEngine() const
@@ -427,10 +418,6 @@ bool SurfaceFlinger::threadLoop()
        logger.log(GraphicLog::SF_COMPOSITION_COMPLETE, index);
        hw.compositionComplete();

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

        logger.log(GraphicLog::SF_SWAP_BUFFERS, index);
        postFramebuffer();