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

Commit 2572bd4f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "VR: Fail presentation without layers"

parents 44c186c9 ffbf8e3d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -178,6 +178,11 @@ Error HwcDisplay::GetFrame(
    }
  }

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

  // Increment the time the fence is signalled every time we get the
  // presentation frame. This ensures that calling ReleaseFrame() only affects
  // the current frame.