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

Commit ffbf8e3d authored by Daniel Nicoara's avatar Daniel Nicoara
Browse files

VR: Fail presentation without layers

Without any layers or a valid client target there is nothing to present.

Bug: None
Test: Compiled
Change-Id: Ib8b4b7ced628a38c69be726bf1c04dde2882c614
(cherry picked from commit 12da96889be17f1964681210d0f780fd70fefc33)
parent 39fe1d87
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.