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

Commit bcb5411d authored by Daniel Nicoara's avatar Daniel Nicoara Committed by android-build-merger
Browse files

VR HWC: Relax checks around layer presentation am: 3e7dad57

am: 102a7d1a

Change-Id: I927df8b962ebc51b534987940a52f0420ca879b2
parents 170e80f8 102a7d1a
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -217,19 +217,14 @@ Error HwcDisplay::GetFrame(
      queued_client_target = true;
    } else {
      if (!layer.info.buffer.get() || !layer.info.fence.get()) {
        ALOGE("Layer requested without valid buffer");
        return Error::BAD_LAYER;
        ALOGV("Layer requested without valid buffer");
        continue;
      }

      frame.push_back(layer.info);
    }
  }

  if (frame.empty()) {
    ALOGE("Requested frame with no layers");
    return Error::BAD_LAYER;
  }

  out_frames->swap(frame);
  return Error::NONE;
}