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

Remove dummy emscripten_set_offscreencanvas_size. NFC #23279

Merged

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 2, 2025

This is an internal-only API that is not directly callable by user code.

The only place that this function is called is from system/lib/html5/offscreencanvas.c as a result of _emscripten_set_offscreencanvas_size_on_thread.

The only call to _emscripten_set_offscreencanvas_size_on_thread is from setOffscreenCanvasSizeOnTargetThread which is only ever included when OFFSCREENCANVAS_SUPPORT is enabled.

@sbc100 sbc100 requested a review from kripken January 2, 2025 17:16
@sbc100 sbc100 force-pushed the emscripten_set_offscreencanvas_size branch 2 times, most recently from 0783e2d to 5f41454 Compare January 2, 2025 17:46
@@ -172,6 +172,8 @@ def ignore_symbol(s, cxx):
return True
if s.startswith('emscripten_gl') or s.startswith('emscripten_alc'):
return True
if (s.endswith('_calling_thread') or s.endswith('_main_thread')) and not s.startswith('emscripten_asm_const'):
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a comment here? I can't tell what this change is doing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've updated this PR such that this change is no longer needed, so I split the doc changes out into a separate PR.

@sbc100 sbc100 force-pushed the emscripten_set_offscreencanvas_size branch 2 times, most recently from 6c9e7eb to 34274a3 Compare January 2, 2025 18:51
tools/maint/gen_sig_info.py Outdated Show resolved Hide resolved
@sbc100 sbc100 force-pushed the emscripten_set_offscreencanvas_size branch from 34274a3 to f3bb4b1 Compare January 2, 2025 19:12
sbc100 added 2 commits January 2, 2025 11:46
This is an internal-only API that is not directly callable by user code.

The only place that this function is called is from
`system/lib/html5/offscreencanvas.c` as a result of
`_emscripten_set_offscreencanvas_size_on_thread`.

The only call to `_emscripten_set_offscreencanvas_size_on_thread`
is from `setOffscreenCanvasSizeOnTargetThread` which is only ever
included when `OFFSCREENCANVAS_SUPPORT` is enabled.
@sbc100 sbc100 force-pushed the emscripten_set_offscreencanvas_size branch from f3bb4b1 to 62d9540 Compare January 2, 2025 19:47
@sbc100 sbc100 merged commit b08c9f1 into emscripten-core:main Jan 2, 2025
27 of 29 checks passed
@sbc100 sbc100 deleted the emscripten_set_offscreencanvas_size branch January 2, 2025 21:20
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