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

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

VR HWC: Relax checks around layer presentation

am: 3e7dad57

Change-Id: Ic50616ef95f1e3d977f1f6f826d1e5030e6cd11c
parents 1f2abd4f 3e7dad57
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;
}