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

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

Merge "libvrflinger: Inject USAGE_HW_COMPOSER usage into DirectSurface buffers."

parents d174a48b a936f7a1
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -268,7 +268,10 @@ Status<LocalChannelHandle> DirectDisplaySurface::OnCreateQueue(


  std::lock_guard<std::mutex> autolock(lock_);
  std::lock_guard<std::mutex> autolock(lock_);
  if (!direct_queue_) {
  if (!direct_queue_) {
    auto producer = ProducerQueue::Create(meta_size_bytes);
    // Inject the hw composer usage flag to enable the display to read the
    // buffers.
    auto producer = ProducerQueue::Create(
        meta_size_bytes, GraphicBuffer::USAGE_HW_COMPOSER, 0, 0, 0);
    if (!producer) {
    if (!producer) {
      ALOGE(
      ALOGE(
          "DirectDisplaySurface::OnCreateQueue: Failed to create producer "
          "DirectDisplaySurface::OnCreateQueue: Failed to create producer "