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

Commit 122f14fa authored by Erik Gilling's avatar Erik Gilling Committed by Android Git Automerger
Browse files

am 94364b91: surfaceflinger: don\'t check HWComposer numLayers unless one exists

Merge commit '94364b91' into gingerbread-plus-aosp

* commit '94364b91':
  surfaceflinger: don't check HWComposer numLayers unless one exists
parents f28608cd 94364b91
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