servo/components/compositing
bors-servo be4ecb9233
Auto merge of #25822 - jdm:delay-reftest-async-render, r=emilio
Delay reftest screenshot while WR frame is rendering

This PR addresses the theory that #24726 occurs when WR is performing an async frame render and the reftest screenshot decides it's time to synchronously read the framebuffer. If there have not been any completed frames rendered yet, that would yield the page background colour.

The changes in this PR introduce an additional layer of synchronization - the compositor stores an AtomicBool value that indicates whether we know that a WR frame has started rendering, which is set to true when an IPC request from layout that submits a new display list is received. This bool is set to false when WR notifies us that a frame has been rendered. The screenshot code refuses to take a screenshot if the bool is true, causing us to delay taking a screenshot until there is no frame pending.
2020-02-21 11:54:44 -05:00
..
build.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
Cargo.toml Update ipc-channel and crossbeam-channel. 2020-02-20 11:15:13 -05:00
compositor.rs Track outstanding WR frames and delay reftest screenshot when necessary. 2020-02-21 11:19:14 -05:00
compositor_thread.rs Track outstanding WR frames and delay reftest screenshot when necessary. 2020-02-21 11:19:14 -05:00
gl.rs Implement TakeElementScreenshot WebDriver command 2019-08-20 00:52:46 +03:00
lib.rs Stop animations when window is hidden (API + UWP) 2020-02-19 14:10:49 +01:00
touch.rs Update euclid. 2019-07-23 23:09:55 +02:00
windowing.rs Stop animations when window is hidden (API + UWP) 2020-02-19 14:10:49 +01:00