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

[Impeller] Copy uniforms before appending them to the DisplayList #36981

Merged
merged 5 commits into from
Oct 25, 2022

Conversation

bdero
Copy link
Member

@bdero bdero commented Oct 24, 2022

ReusableFragmentShader has a lifetime that lasts longer than a frame, and the uniforms can be continually changed on the UI thread. So take a copy (intention immutable) of the uniforms before handing it to the DL for consumption on the render thread.

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
3 participants