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

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

Merge "fix a signed/unsigned comparison warning"

parents 1a155247 9494b736
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -133,13 +133,14 @@ void HwcDisplay::GetChangedCompositionTypes(
              return lhs.info.z_order < rhs.info.z_order;
              return lhs.info.z_order < rhs.info.z_order;
            });
            });


  int first_client_layer = -1, last_client_layer = -1;
  const size_t no_layer = std::numeric_limits<size_t>::max();
  size_t first_client_layer = no_layer, last_client_layer = no_layer;
  for (size_t i = 0; i < layers_.size(); ++i) {
  for (size_t i = 0; i < layers_.size(); ++i) {
    switch (layers_[i].composition_type) {
    switch (layers_[i].composition_type) {
      case IComposerClient::Composition::SOLID_COLOR:
      case IComposerClient::Composition::SOLID_COLOR:
      case IComposerClient::Composition::CURSOR:
      case IComposerClient::Composition::CURSOR:
      case IComposerClient::Composition::SIDEBAND:
      case IComposerClient::Composition::SIDEBAND:
        if (first_client_layer < 0)
        if (first_client_layer == no_layer)
          first_client_layer = i;
          first_client_layer = i;


        last_client_layer = i;
        last_client_layer = i;