mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove HTMLCanvasDataSource
and CanvasSource
(#36794)
All canvases return `Option<ImageKey>`. Testing: Just refactor without behavior changes Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
1a3f10bba4
commit
3648525fe8
10 changed files with 28 additions and 71 deletions
|
@ -117,16 +117,8 @@ pub enum LayoutElementType {
|
|||
SVGSVGElement,
|
||||
}
|
||||
|
||||
pub enum HTMLCanvasDataSource {
|
||||
WebGL(ImageKey),
|
||||
Image(ImageKey),
|
||||
WebGPU(ImageKey),
|
||||
/// transparent black
|
||||
Empty,
|
||||
}
|
||||
|
||||
pub struct HTMLCanvasData {
|
||||
pub source: HTMLCanvasDataSource,
|
||||
pub source: Option<ImageKey>,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue