Adopt upstream deprecations in ui-graphics#2802
Merged
Merged
Conversation
Add the Paint.nativePaint bridge API, update skia-backed canvas/paint internals to use explicit skia aliases
Replace non-Android asFrameworkPaint usages with nativePaint in ui and ui-text, and make SkiaTextPaint expose its delegated native paint safely for ParagraphBuilder.
| @Deprecated( | ||
| message = "Use asSkiaColorFilter()", | ||
| replaceWith = ReplaceWith("asSkiaColorFilter()"), | ||
| level = DeprecationLevel.ERROR, |
Collaborator
Author
There was a problem hiding this comment.
It has been deprecated since 2021, I'm not sure that it is worth mentioning in the changelog/migration notes since I'm almost sure that nobody uses this
Victor Kropp (kropp)
approved these changes
Feb 27, 2026
Igor Demin (igordmn)
approved these changes
Feb 27, 2026
Ivan Matkov (MatkovIvan)
added a commit
that referenced
this pull request
Mar 2, 2026
…#2809) #2802's follow-up [CMP-9836](https://youtrack.jetbrains.com/issue/CMP-9836) Deprecate `.native*` extensions in favor to `.skia*` in `ui-graphics` ## Release Notes ### Migration Notes - Multiple Platforms - `RenderEffect.asSkiaImageFilter()` was replaced to `RenderEffect.skiaImageFilter` extension to avoid exposing a platform type into `commonMain` types - Deprecated `Canvas.nativeCanvas` extension in favor to `Canvas.skiaCanvas` to avoid ambiguity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CMP-9776 Adapt the sources for expect class NativePaint deprecation
Release Notes
Migration Notes - Multiple Platforms
androidx.compose.ui.graphics.NativePaintandandroidx.compose.ui.graphics.NativeCanvastypealiases are deprecated, use direct references to native types instead.Paint.asFrameworkPaint()was replaced withPaint.skiaPaintextension to avoid exposing a platform type intocommonMainsourceset viatypealias