diff options
author | Martin Robinson <mrobinson@igalia.com> | 2015-01-02 09:34:52 -0800 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2015-01-02 15:20:32 -0800 |
commit | c0b397322f3917a616db22798918df42b5a5c2e2 (patch) | |
tree | 16525425f70a8460498376930e31878b30aa7520 /components/script/dom/xmlhttprequest.rs | |
parent | 141b5d038fad3c0c44a6f1b309b8ca9edea54580 (diff) | |
download | servo-c0b397322f3917a616db22798918df42b5a5c2e2.tar.gz servo-c0b397322f3917a616db22798918df42b5a5c2e2.zip |
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.
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
0 files changed, 0 insertions, 0 deletions