mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Only send unused buffers messages if there are actually any buffers
Some debugging reveals that the send_back_unused_buffers() quite often sends empty vectors back to the paint task. This still incurs an communication overhead though. Instead check that the there actually are buffers to send back.
This commit is contained in:
parent
1fd609d198
commit
0c1eeb2fc7
3 changed files with 11 additions and 13 deletions
|
@ -227,7 +227,7 @@ impl CompositorLayer for Layer<CompositorData> {
|
|||
let _ = pipeline.paint_chan.send(PaintMsg::UnusedBuffer(unused_buffers));
|
||||
}
|
||||
|
||||
return true;
|
||||
true
|
||||
}
|
||||
|
||||
fn clear<Window>(&self, compositor: &IOCompositor<Window>) where Window: WindowMethods {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue