mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
77bf0111ce
Now CompositorAnimationStorage::GetAnimatedValue() and SetAnimatedValue()s are called on the sampler thread in case of WebRender, are called on the compositor thread in case of non WebRender, so we drop assertions of IsInCompositorThread check there. A mLock.AssertCurrentThreadOwns call in each function should make sure the function gets called on the sampler/compositor thread with acquiring the lock. One caveat in this change is that in case we try to get an animation value via nsIDOMWindowUtils.getOMTAStyle(), we do sample animations on the _compositor_ thread and we never call UpdateDynamicProperties, which means if it gets called in testing refresh driver mode, visual results will differ from what the value returned by the getOMTAStyle should look like. But it should be fine because we disallow using any chrome priviledge APIs in reftests and also we will never use the testing refresh driver mode in the reftest harness. Also in mochitests the visual results' differences might make people confusing if the person can notice it, but in principal getOMTAStyle() is designed to get computed animating values so that it doesn't matter what the visual result is. Differential Revision: https://phabricator.services.mozilla.com/D79982 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |