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

Dynamic opacity and scaling #640

Closed
kvark opened this issue Dec 14, 2016 · 5 comments
Closed

Dynamic opacity and scaling #640

kvark opened this issue Dec 14, 2016 · 5 comments

Comments

@kvark
Copy link
Member

@kvark kvark commented Dec 14, 2016

We support scrolling for asynchronous operations, but we also need opacity changes as well as scaling.

@jrmuizel jrmuizel mentioned this issue Dec 14, 2016
20 of 24 tasks complete
@glennw
Copy link
Member

@glennw glennw commented Dec 14, 2016

Could you expand a little bit on what this involves and what the use case is?

@jrmuizel
Copy link
Contributor

@jrmuizel jrmuizel commented Dec 15, 2016

This is required for off main thread animations. i.e. a web page can set up an animation on a div that changes it's transform or opacity and we should be able to deal with that entirely in webrender.

@glennw
Copy link
Member

@glennw glennw commented Dec 15, 2016

@jrmuizel OK, that makes sense. How does gecko currently match up the opacity for a given div with a layer in the compositor right now? That's probably the only tricky part to this task. Do you have any thoughts on what the API would look like to make it easy to integrate into gecko?

@howareyou322
Copy link
Contributor

@howareyou322 howareyou322 commented Dec 28, 2016

About off main thread animations, gecko will sample new animation value for a given div(usually maps to a containerlayer) during every vsync. I assume we still keep the logic of sample animation in gecko, but tell webrender an animation effect change on one div. Am I right?

@glennw
Copy link
Member

@glennw glennw commented Feb 7, 2017

This is supported now via #832 - we can open more specific issues for bugs / extra features.

@glennw glennw closed this Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.