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

[webgl]Donot use cache context if use custom canvas #6100

Merged
merged 2 commits into from Feb 4, 2022

Conversation

lina128
Copy link
Collaborator

@lina128 lina128 commented Feb 4, 2022

User needs to clear the default gl context (generated as a side effect when webgl backend is imported) to use their own canvas. From user feedback, it seems that they expect no caching when custom canvas is passed. This is also the behavior of passing in custom context. This change allows users to directly use their custom canvas without having to clear gl context first.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@lina128 lina128 changed the title [webgl]Donot cache context if use custom canvas [webgl]Donot use cache context if use custom canvas Feb 4, 2022
@lina128 lina128 marked this pull request as ready for review February 4, 2022 18:45
Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @jinjingforever)

@lina128 lina128 merged commit e83e66b into tensorflow:master Feb 4, 2022
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.

None yet

3 participants