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

ANGLE support #1017

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

ANGLE support #1017

wants to merge 4 commits into from

Conversation

Alovchin91
Copy link
Contributor

@Alovchin91 Alovchin91 commented Jan 30, 2025

This change adds ANGLE renderer support to Skiko.

ANGLE project translates OpenGL ES API calls to the native platform's graphics API. This is mostly useful on Windows where ANGLE provides the Direct3D 11 backend.

Right now, there is a gap in Skiko's graphics support. On Windows ARM, Skia doesn't support OpenGL yet. At the same time, some GPUs, like Parallels or VMware virtual GPUs, don't support DirectX 12. This means Skiko falls back to the slow software rendering on those GPUs. ANGLE solves this problem by providing an easy-to-use DirectX 11 backend.

In addition, ANGLE is used by Chromium-based browsers and apps, so we expect it to be more stable than Skia's DirectX backend.

@igordmn igordmn self-requested a review January 30, 2025 10:50
skiko/buildSrc/src/main/kotlin/properties.kt Outdated Show resolved Hide resolved
skiko/buildSrc/src/main/kotlin/properties.kt Outdated Show resolved Hide resolved
@@ -43,7 +43,7 @@ case $SKIA_TARGET in
;;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be good if we can include Angle as a jar via skiko-awt-runtime-angle-$platform

Copy link
Contributor Author

@Alovchin91 Alovchin91 Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me see if I can figure this out

skiko/build-with-local-skia.sh Outdated Show resolved Hide resolved
@igordmn igordmn self-requested a review January 31, 2025 13:38
@Alovchin91 Alovchin91 force-pushed the alovchin/angle branch 4 times, most recently from b951351 to 87790e5 Compare February 7, 2025 15:34
@Alovchin91 Alovchin91 marked this pull request as ready for review February 7, 2025 15:42
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.

2 participants