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

Commit 24925bfb authored by Erik Gilling's avatar Erik Gilling
Browse files

surfaceflinger: don't check HWComposer numLayers unless one exists

Change-Id: I6524f46910b761cff3ef696edf5a65a424879faa
parent 907ba869
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