mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Update crossbeam-channel to 0.3
This commit is contained in:
parent
76195e0779
commit
9a7eeb349a
74 changed files with 303 additions and 521 deletions
|
@ -22,6 +22,7 @@ pub mod webdriver_msg;
|
|||
use bluetooth_traits::BluetoothRequest;
|
||||
use canvas_traits::webgl::WebGLPipeline;
|
||||
use crate::webdriver_msg::{LoadStatus, WebDriverScriptCommand};
|
||||
use crossbeam_channel::{Receiver, RecvTimeoutError, Sender};
|
||||
use devtools_traits::{DevtoolScriptControlMsg, ScriptToDevtoolsControlMsg, WorkerId};
|
||||
use euclid::{Length, Point2D, Rect, TypedScale, TypedSize2D, Vector2D};
|
||||
use gfx_traits::Epoch;
|
||||
|
@ -42,7 +43,6 @@ use profile_traits::mem;
|
|||
use profile_traits::time as profile_time;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
use servo_atoms::Atom;
|
||||
use servo_channel::{Receiver, Sender};
|
||||
use servo_url::ImmutableOrigin;
|
||||
use servo_url::ServoUrl;
|
||||
use std::collections::HashMap;
|
||||
|
@ -828,6 +828,12 @@ pub enum PaintWorkletError {
|
|||
WorkletNotFound,
|
||||
}
|
||||
|
||||
impl From<RecvTimeoutError> for PaintWorkletError {
|
||||
fn from(_: RecvTimeoutError) -> PaintWorkletError {
|
||||
PaintWorkletError::Timeout
|
||||
}
|
||||
}
|
||||
|
||||
/// Execute paint code in the worklet thread pool.
|
||||
pub trait Painter: SpeculativePainter {
|
||||
/// <https://drafts.css-houdini.org/css-paint-api/#draw-a-paint-image>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue