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

Commit abdf4dab authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Add requested_corner_radius to layer proto

Test: Check that it shows up in the dumped proto files (e.g. Winscope)
Bug: 193875495
Change-Id: Ib9f68260f73aff3adc455b5ea8e314a96e514fa7
parent d67685e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2031,6 +2031,7 @@ void Layer::writeToProtoDrawingState(LayerProto* layerInfo, uint32_t traceFlags,
        layerInfo->set_curr_frame(mCurrentFrameNumber);
        layerInfo->set_effective_scaling_mode(getEffectiveScalingMode());

        layerInfo->set_requested_corner_radius(getDrawingState().cornerRadius);
        layerInfo->set_corner_radius(getRoundedCornerState().radius);
        layerInfo->set_background_blur_radius(getBackgroundBlurRadius());
        layerInfo->set_is_trusted_overlay(isTrustedOverlay());
+4 −1
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@ message LayerProto {
  repeated BlurRegion blur_regions = 54;

  bool is_trusted_overlay = 55;

  // Corner radius explicitly set on layer rather than inherited
  float requested_corner_radius = 56;
}

message PositionProto {