Skip to content

Commit

Permalink
Apply antialiasing to RenderNode clipping operations (#1816)
Browse files Browse the repository at this point in the history
Fixes https://youtrack.jetbrains.com/issue/CMP-7508
Skiko change: JetBrains/skiko#1018
Regression after #1784

## Testing
Covered by integration tests

## Release Notes
N/A
  • Loading branch information
MatkovIvan authored Jan 31, 2025
1 parent 9fba108 commit 9c8421c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ actual class GraphicsLayer internal constructor(
renderNode.clip = clip
val tmpOutline = outline
when (tmpOutline) {
is Outline.Rectangle -> renderNode.setClipRect(tmpOutline.rect.toSkiaRect())
is Outline.Rounded -> renderNode.setClipRRect(tmpOutline.roundRect.toSkiaRRect())
is Outline.Generic -> renderNode.setClipPath(tmpOutline.path.asSkiaPath())
is Outline.Rectangle -> renderNode.setClipRect(tmpOutline.rect.toSkiaRect(), antiAlias = true)
is Outline.Rounded -> renderNode.setClipRRect(tmpOutline.roundRect.toSkiaRRect(), antiAlias = true)
is Outline.Generic -> renderNode.setClipPath(tmpOutline.path.asSkiaPath(), antiAlias = true)
}
}
outlineDirty = false
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protobuf = "3.22.3"
paparazzi = "1.0.0"
paparazziNative = "2022.1.1-canary-f5f9f71"
shadow = "8.1.1"
skiko = "0.8.23"
skiko = "0.8.24"
spdxGradlePlugin = "0.6.0"
sqldelight = "1.3.0"
retrofit = "2.7.2"
Expand Down

0 comments on commit 9c8421c

Please sign in to comment.