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

Commit 56a2bbe7 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

SF needs to render even if we don't have a h/w composer

Bug: 6350574, 6361055
Change-Id: Iab92cc31bab4771fca63619c8e3105c759535f72
parent 9798ff28
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -892,9 +892,10 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
{
    const DisplayHardware& hw(graphicPlane(0).displayHardware());
    HWComposer& hwc(hw.getHwComposer());
    hwc_layer_t* const cur(hwc.getLayers());

    const size_t fbLayerCount = hwc.getLayerCount(HWC_FRAMEBUFFER);
    if (fbLayerCount) {
    if (!cur || fbLayerCount) {
        // Never touch the framebuffer if we don't have any framebuffer layers

        if (hwc.getLayerCount(HWC_OVERLAY)) {
@@ -917,7 +918,6 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
         * and then, render the layers targeted at the framebuffer
         */

        hwc_layer_t* const cur(hwc.getLayers());
        const Vector< sp<LayerBase> >& layers(mVisibleLayersSortedByZ);
        const size_t count = layers.size();