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

WebGLImageFilter is not compatible with Web Workers #27

Closed
vladmandic opened this issue Oct 18, 2020 · 1 comment
Closed

WebGLImageFilter is not compatible with Web Workers #27

vladmandic opened this issue Oct 18, 2020 · 1 comment

Comments

@vladmandic
Copy link

vladmandic commented Oct 18, 2020

WebGLImageFilter uses DOM methods to create canvas (e.g. document.createElement()) - and DOM is not available inside a web worker.

Should use OffscreenCanvas instead.

Which then leads to second problem, canvas and it's webgl context are initialized upon class creation and only resized upon subsequent access - but OffscreenCanvas cannot be resized, it has to be initialized with fixed size. Which means that initialization code should be modified so canvas is dynamically created (and it's context updated).

@vladmandic
Copy link
Author

closing as no update from maintainer for over a year.

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

No branches or pull requests

1 participant