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

Commit 88a9bc0d authored by Corey Tabaka's avatar Corey Tabaka Committed by Android (Google) Code Review
Browse files

Merge "Clean up handling of VR surface updates." into oc-mr1-dev

parents 08903839 2c4aea36
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -349,17 +349,9 @@ DisplayService::GetVisibleDisplaySurfaces() const {

void DisplayService::UpdateActiveDisplaySurfaces() {
  auto visible_surfaces = GetVisibleDisplaySurfaces();

  std::sort(visible_surfaces.begin(), visible_surfaces.end(),
            [](const std::shared_ptr<DisplaySurface>& a,
               const std::shared_ptr<DisplaySurface>& b) {
              return a->z_order() < b->z_order();
            });

  ALOGD_IF(TRACE,
           "DisplayService::UpdateActiveDisplaySurfaces: %zd visible surfaces",
           visible_surfaces.size());

  hardware_composer_.SetDisplaySurfaces(std::move(visible_surfaces));
}

+205 −149

File changed.

Preview size limit exceeded, changes collapsed.

+62 −38

File changed.

Preview size limit exceeded, changes collapsed.