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

Make Text widget use SkijaGC if enabled #159

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Make Text widget use SkijaGC if enabled #159

merged 2 commits into from
Mar 14, 2025

Conversation

HeikoKlare
Copy link

Currently, the Text widget based on CSimpleText uses the original (native) GC. With this change, it performs rendering based on a SkijaGC if enabled.

To this end, the PR also adds proper handling for the transparency flag when drawing text with SkijaGC. The transparency flag and argument of SkijaGCs drawText methods have not been considered. With this change, the background of the text is drawn if the transparent flag is not set as defined by the API.

Copy link

github-actions bot commented Mar 12, 2025

Test Results

   341 files  ±0     341 suites  ±0   2m 9s ⏱️ -8s
 3 955 tests ±0   3 671 ✅ ±0  284 💤 ±0  0 ❌ ±0 
11 693 runs  ±0  10 808 ✅ ±0  885 💤 ±0  0 ❌ ±0 

Results for commit 8e5b700. ± Comparison against base commit 09b3083.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review March 12, 2025 16:25
The transparency flag and argument of SkijaGCs drawText methods have not
been considered. With this change, the background of the text is drawn
if the transparent flag is not set as defined by the API.
Currently, the Text widget based on CSimpleText uses the original
(native) GC. With this change, it performs rendering based on a SkijaGC
if enabled.
@HeikoKlare HeikoKlare merged commit 4f08da9 into master Mar 14, 2025
5 checks passed
@HeikoKlare HeikoKlare deleted the text-use-skija branch March 14, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants