servo/components/script
Martin Robinson c0b397322f Stall PaintTask exit until it can release all buffers
It is possible for a PaintTask to start exiting soon after sending new
buffers to the compositor. In that case, the compositor should return
the now unnecessary buffers to the PaintTask so that it can properly
free them.

To accomplish this, the compositor now keeps a hash map of paint task
channels per pipeline id. When a PaintTask exists, the constellation
informs the compositor that it can forget about it. Additionally, the
PaintTask should not wait for any buffers when the engine is doing a
complete shutdown. In that case, the compositor is already halted and
has simply let all buffers leak. We pipe through the shutdown type when
destroying the pipeline to make this decision.

Fixes #2641.
2015-01-02 15:20:32 -08:00
..
dom auto merge of #4526 : servo/servo/deref-1, r=Manishearth 2015-01-02 09:22:51 -07:00
parse Replace Root::deref() calls by Root::r() calls where possible. 2015-01-01 20:36:43 +01:00
Cargo.toml Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00
cors.rs Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00
devtools.rs Replace Root::deref() calls by Root::r() calls where possible. 2015-01-01 20:36:43 +01:00
layout_interface.rs Stall PaintTask exit until it can release all buffers 2015-01-02 15:20:32 -08:00
lib.rs Allow refcounting arbitrary DOM objects in concert with the GC to enable safe, asynchronous/cross-task references to pinned objects. 2014-12-29 13:53:48 -05:00
makefile.cargo Cargoify servo 2014-09-08 20:21:42 -06:00
page.rs Replace Root::deref() calls by Root::r() calls where possible. 2015-01-01 20:36:43 +01:00
script_task.rs Stall PaintTask exit until it can release all buffers 2015-01-02 15:20:32 -08:00
tests.rs Implement HTMLElement.dataset (fixes #2974). 2014-12-23 14:24:06 +01:00
textinput.rs script: to_string() -> into_string() 2014-12-27 14:48:36 +01:00
timers.rs Force all messages to worker tasks to send a TrustedWorkerAddress along with the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed. 2014-12-29 13:53:49 -05:00