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

Commit 0c1e6f99 authored by Ramakant Singh's avatar Ramakant Singh Committed by Steve Kondik
Browse files

SF::Call qcomuiClearRegion() method for mdp composition

Change-Id: I2c36aeea1a71312e1fbd5b56a14c8c183719a8ba
CRs-Fixed: 383115
parent 7523410a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ endif
ifeq ($(BOARD_USES_QCOM_HARDWARE), true)
    LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc
    LOCAL_C_INCLUDES += hardware/qcom/display/libqdutils
    LOCAL_SHARED_LIBRARIES += libqdutils
    LOCAL_CFLAGS += -DQCOMHW
endif

+12 −0
Original line number Diff line number Diff line
@@ -68,6 +68,10 @@
#include "SecTVOutService.h"
#endif

#ifdef QCOMHW
#include <clear_regions.h>
#endif

#define EGL_VERSION_HW_ANDROID  0x3143

#define DISPLAY_COUNT       1
@@ -1008,6 +1012,14 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
                layer->draw(clip);
            }
        }
    } else if (cur && !mWormholeRegion.isEmpty()) {
            const Region region(mWormholeRegion.intersect(mDirtyRegion));
            if (!region.isEmpty()) {
#ifdef QCOMHW
               if (0 != qdutils::qcomuiClearRegion(region, hw.getEGLDisplay()))
#endif
                      drawWormhole();
        }
    }
}