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

fix: renderToCanvas to use CPU rendering #74

Merged
merged 6 commits into from
Apr 13, 2022
Merged

fix: renderToCanvas to use CPU rendering #74

merged 6 commits into from
Apr 13, 2022

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Apr 12, 2022

  • Fix the renderToCanvas to use the CPU rendering pipeline
  • Add stackPrefetch utility function

@sedghi sedghi requested a review from swederik April 12, 2022 15:28
Copy link
Member

@JamesAPetts JamesAPetts left a comment

Choose a reason for hiding this comment

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

This looks good to me, minor comment/question, but otherwise fine.

canvas: HTMLCanvasElement,
imageId: string,
requestType = RequestType.Interaction,
priority = -5
Copy link
Member

Choose a reason for hiding this comment

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

Shall we just hardcode this as something super high priority? It feels like no one, not even power users, would ever specify anything other than now for this? Setting a priority so it loads in some queue you have no knowledge of when making this call feels realllly weird.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it has some value to keep the parameters and give default options.

@sedghi sedghi merged commit 97ba32f into main Apr 13, 2022
@swederik swederik deleted the fix/renderToCanvas branch July 8, 2022 09:33
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