Bug 448299 - It's possible to enable webgl for plasmashell?
Summary: It's possible to enable webgl for plasmashell?
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: 5.23.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-12 06:39 UTC by 319513897@outlook.com
Modified: 2022-07-27 22:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.26
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 319513897@outlook.com 2022-01-12 06:39:18 UTC
Hi. I'm a user of wallpaper engine, and a man who implement it for Linux. However, some wallpapers which I like used webgl, but plasmashell not support it. So I am here to ask can we enable webgl for plasmashell?

a issue relevant  is: https://github.com/catsout/wallpaper-engine-kde-plugin/issues/44
Comment 1 David Edmundson 2022-01-12 08:09:56 UTC
FWIW we support GL natively so going via WebGL and a WebView adds a lot of overhead that could be avoided by just shoving your shader in a ShaderEffect item.

>Qt::AA_ShareOpenGLContext 

I meant to add that to Plasma for other performance reasons. Apparently I never pushed it. I'll do that and that might happen to fix this.
Comment 2 Bug Janitor Service 2022-01-12 08:40:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1349
Comment 3 319513897@outlook.com 2022-01-12 10:59:31 UTC
Thanks for your comments and efforts very much.  :)
I'd like to help test it if needed
Comment 4 David Edmundson 2022-07-25 10:43:34 UTC
Git commit 6c1c6b86db07348b636c39ee344a12570e4e322c by David Edmundson.
Committed on 25/07/2022 at 10:36.
Pushed by davidedmundson into branch 'master'.

Use shared contexts for plasmashell

Shared contexts allow us to share textures and vertex buffers between
contexts (windows) this allows us to reduce memory in popups and alike.

To fully make use of this requires some follow up work in
ManagedTextureNode for FrameSVG, but we should sitll get some OOTB.

If shared contexts are not supported this fails gracefully - though we
are relying on shared contexts within kwin for a release without issue.

It also should fix WebGL inside WebViews.

M  +1    -0    shell/main.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/6c1c6b86db07348b636c39ee344a12570e4e322c