servo/components/compositing
bors-servo aba500a698 Auto merge of #9858 - glennw:anim-smoothness, r=pcwalton
Fix animation smoothness when using requestAnimationFrame.

Previously, the flow for ticking animations was:

Compositor -> Constellation -> Layout -> Script

However, this means that the compositor <-> layout messages can thrash, meaning layout thread is very rarely idle.

This means that the script thread (which joins on the layout thread during reflow) was unable to execute and run rAF callbacks.

With this change, the flow is now:

Compositor -> Constellation -> Script (when rAF is active).
Compositor -> Constellation -> Layout (when transitions / animations are active and no rAF is present).

This makes rAF based animation *much* smoother.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9858)
<!-- Reviewable:end -->
2016-03-04 05:50:50 +05:30
..
Cargo.toml Indicate components should not be published to crates.io. 2016-03-03 15:04:44 -05:00
compositor.rs Fix animation smoothness when using requestAnimationFrame. 2016-03-04 07:26:00 +10:00
compositor_layer.rs compositing: Fix a couple of bugs that prevented iframes from painting 2016-01-26 16:37:23 -05:00
compositor_thread.rs compositing: Stop compositing unnecessarily after each animation frame. 2016-02-24 14:06:46 -08:00
constellation.rs Fix animation smoothness when using requestAnimationFrame. 2016-03-04 07:26:00 +10:00
delayed_composition.rs compositing: Stop compositing unnecessarily after each animation frame. 2016-02-24 14:06:46 -08:00
headless.rs Fix animation smoothness when using requestAnimationFrame. 2016-03-04 07:26:00 +10:00
lib.rs Fix animation smoothness when using requestAnimationFrame. 2016-03-04 07:26:00 +10:00
pipeline.rs Add WebRender integration to Servo. 2016-02-18 10:35:29 +10:00
sandboxing.rs Remove unused import. 2015-11-20 08:55:41 +01:00
scrolling.md Add documentation about the scrolling model 2014-10-10 09:26:43 -07:00
surface_map.rs task -> thread 2016-01-10 17:58:13 +09:00
timer_scheduler.rs task -> thread 2016-01-10 17:58:13 +09:00
touch.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
windowing.rs Move util::cursor to style_traits 2016-02-16 00:50:01 +01:00