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

Commit 00826183 authored by Prabhanjan Kandula's avatar Prabhanjan Kandula Committed by Giulio Cervera
Browse files

frameworks/base: fix delay in HDMI update

SF threadloop now checks for dirtyregion and returns
if it is empty. Mark dirtyregion as nonempty so that
threadloop actually executes when required

Change-Id: I00e132433922509468b258c33279c819b3294d73
CRs-fixed: 327432
parent b302db6f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1400,6 +1400,7 @@ void SurfaceFlinger::updateHwcExternalDisplay(int externaltype)
{
    invalidateHwcGeometry();
    const DisplayHardware& hw(graphicPlane(0).displayHardware());
    mDirtyRegion.set(hw.bounds());
    HWComposer& hwc(hw.getHwComposer());
    hwc.enableHDMIOutput(externaltype);
}