-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Extract the canvas from the offscreenCanvases entry #22958
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
Extract the canvas from the offscreenCanvases entry #22958
Conversation
…reating a context; fixes emscripten-core#22943
|
I added a test that fails without the patch and passes with the patch. |
sbc100
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I guess this feature simply never worked? Or maybe it worked at some point in history and bitrotted? (@juj WDYT?)
Thanks for working on this!
| @@ -0,0 +1,27 @@ | |||
| // Copyright 2016 The Emscripten Authors. All rights reserved. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2024
|
It looks like this code was added back in 1b27891. It looks like in that original patch this code would have worked because It looks like the breaking change was in 736565e where the values in |
sbc100
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What do you think @juj?
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JoeOsborn !
test/test_browser.py
Outdated
| @parameterized({ | ||
| 'offscreencanvas': (['-sOFFSCREENCANVAS_SUPPORT'],), | ||
| 'offscreenframebuffer': (['-sOFFSCREEN_FRAMEBUFFER', '-DUSE_OFFSCREEN_FRAMEBUFFER'],), | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flake8 doesn't like this }). It should be indented to match the @parameterized above.
Sorry for all the back a forth, I think this will be good to go after this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I fixed this now)
|
Thank you! |
|
Hmm, the code size failures here seem unrelated. @sbc100 was there a recent update there? |
Yup, I just updated the expectation. Rebasing should fix those failures. |
Fixes type error in #22943 when creating a context with explicit swap control.