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

Commit b2ec0ed6 authored by Surbhi Kadam's avatar Surbhi Kadam
Browse files

Send computed corner radii with SurfaceStats

This commit populates the `cornerRadii` field within `SurfaceControlStats`. This field holds the layer's effective corner radii, calculated by SurfaceFlinger's internal clipping logic using the layer's `layerCropRect` and `sourceBounds`.

This enables clients to precisely match SF's computed radii with their
`clientDrawnCornerRadii`. If a match is found and the client's `clientCrop` aligns with the layer's geometric bounds, SF can disable its rounded corner rendering.

Bug: 372620947
Flag:com.android.graphics.surfaceflinger.flags.set_client_drawn_corner_radii
Test: presubmit; atest SurfaceFlinger_test libsurfaceflinger_unittest libgui_test

Change-Id: Id21f0e22b3af599b8199577dd7fae6f968834b26
parent 3b4a75e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment