mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
canvas: Port CanvasMsg channel to generic channel (#39348)
Additionally also improve the warning message if the routed receiver disconnects and exit the thread. If the routed receiver disconnects, we can't receive any canvas messages anymore, and any control messages can't remedy that, so we might as well exit. Testing: Channel changes are covered by existing tests. Exiting the canvas thread if the routed thread disconnects is not tested, and needs reviewer attention. Part of https://github.com/servo/servo/issues/38912 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
76645e5e26
commit
666b17a9a1
4 changed files with 23 additions and 18 deletions
|
@ -542,7 +542,7 @@ pub enum ScriptToConstellationMessage {
|
|||
/// 2D canvases may use the GPU and we don't want to give untrusted content access to the GPU.)
|
||||
CreateCanvasPaintThread(
|
||||
UntypedSize2D<u64>,
|
||||
IpcSender<Option<(IpcSender<CanvasMsg>, CanvasId, ImageKey)>>,
|
||||
IpcSender<Option<(GenericSender<CanvasMsg>, CanvasId, ImageKey)>>,
|
||||
),
|
||||
/// Notifies the constellation that this pipeline is requesting focus.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue