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

Commit 0532bad4 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Lock BLOB buffer for USAGE_CPU_WRITE_OFTEN

Bug: 301023410
Test: atest virtual_camera_tests CtsVirtualDevicesCameraTestCases CtsVirtualDevicesCameraCtsTestCases
Change-Id: I91056eb6a796c1169e31283e48375ae239176b8b
parent 18ac32cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ ndk::ScopedAStatus VirtualCameraRenderThread::renderIntoBlobStreamBuffer(
    return status;
  }

  PlanesLockGuard planesLock(hwBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY,
  PlanesLockGuard planesLock(hwBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN,
                             fence);
  if (planesLock.getStatus() != OK) {
    return cameraStatus(Status::INTERNAL_ERROR);