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

Commit ae957658 authored by Erik Gilling's avatar Erik Gilling Committed by Mathias Agopian
Browse files

surfaceflinger: don't check HWComposer numLayers unless one exists

Change-Id: I4b83f7bf7ba1318c70054117f14e759fe0ad105c
parent a54831c5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -839,7 +839,9 @@ void SurfaceFlinger::composeSurfaces(const Region& dirty)
            hwc.getNumLayers(), count);

    // just to be extra-safe, use the smallest count
    if (hwc.initCheck() == NO_ERROR) {
        count = count < hwc.getNumLayers() ? count : hwc.getNumLayers();
    }

    /*
     *  update the per-frame h/w composer data for each layer