mirror of
https://github.com/servo/servo.git
synced 2025-06-09 00:53:26 +00:00
Implemented paint worklet properties.
This commit is contained in:
parent
de331c6bc8
commit
ef033b8362
29 changed files with 353 additions and 118 deletions
|
@ -828,11 +828,11 @@ impl From<RecvTimeoutError> for PaintWorkletError {
|
|||
}
|
||||
|
||||
/// Execute paint code in the worklet thread pool.
|
||||
pub trait PaintWorkletExecutor: Sync + Send {
|
||||
pub trait Painter: Sync + Send {
|
||||
/// https://drafts.css-houdini.org/css-paint-api/#draw-a-paint-image
|
||||
fn draw_a_paint_image(&self,
|
||||
name: Atom,
|
||||
concrete_object_size: Size2D<Au>,
|
||||
properties: Vec<(Atom, String)>,
|
||||
sender: IpcSender<CanvasData>);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue