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
Loading
Please register or sign in to comment