Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SKXamlCanvas on Uno Skia to use Bgra8888 #2918

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

Youssef1313
Copy link
Contributor

@Youssef1313 Youssef1313 commented Jul 3, 2024

Description of Change

Use Bgra8888 instead of PlatformColorType

Bugs Fixed

When not running on Windows where PlatformColorType may not be Bgra8888, rendering will be incorrect. In Uno, both WriteableBitmap and SkiaCompositionSurface deal explicitly with Bgra8888, so the format used in SKXamlCanvas has to match.

https://github.com/unoplatform/uno/blob/1d1f8c9f1f87fbb7e1af9d884049cef06cb46680/src/Uno.UI.Composition/Composition/SkiaCompositionSurface.skia.cs#L64

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

@mattleibow mattleibow merged commit c264c44 into mono:main Jul 3, 2024
1 of 2 checks passed
@mattleibow mattleibow added the backport/release/2.x Backport this PR to release/2.x label Jul 3, 2024
github-actions bot pushed a commit that referenced this pull request Jul 3, 2024
* Fix SKXamlCanvas on Uno Skia to use Bgra8888
* Fix build

(cherry picked from commit c264c44)
mattleibow pushed a commit that referenced this pull request Jul 3, 2024
* Fix SKXamlCanvas on Uno Skia to use Bgra8888
* Fix build

(cherry picked from commit c264c44)

Co-authored-by: Youssef Victor <[email protected]>
@Youssef1313 Youssef1313 deleted the patch-1 branch July 4, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/release/2.x Backport this PR to release/2.x community ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants