Skip to content

Replace Shader definition from typealias to wrapper for non-android platforms#2810

Merged
Ivan Matkov (MatkovIvan) merged 1 commit into
jb-mainfrom
ivan.matkov/shader-wrapper
Mar 3, 2026
Merged

Replace Shader definition from typealias to wrapper for non-android platforms#2810
Ivan Matkov (MatkovIvan) merged 1 commit into
jb-mainfrom
ivan.matkov/shader-wrapper

Conversation

@MatkovIvan

@MatkovIvan Ivan Matkov (MatkovIvan) commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

CMP-9812 Shader wrapper migration for non-android platforms

Release Notes

Breaking Changes - Multiple Platforms

  • To decouple common Compose graphics APIs from direct Skia/Skiko types, non-Android Shader is now a dedicated Compose wrapper type. Since it's not an ABI-compatible change, you might need to update some libraries that use this API to newer, compatible versions. Migration:
    • If you pass raw Skia/Skiko shaders into Compose APIs, wrap with SkShader.asComposeShader().
    • If you need low-level Skia/Skiko access from Compose Shader, use Shader.skiaShader extension.

Base automatically changed from ivan.matkov/align-ext-naming to jb-main March 2, 2026 15:54
Comment thread compose/ui/ui-graphics/api/desktop/ui-graphics.api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants