mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add HTMLCanvasDataSource::Empty
that represent transparent black instead of HTMLCanvasDataSource::Image(None)
(#33519)
* `HTMLCanvasDataSource::Empty` that represent transparent black instead of Image(None)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Fix warning from 3a0d27b231
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
bab769a7cf
commit
3e29131d64
7 changed files with 41 additions and 36 deletions
|
@ -665,7 +665,7 @@ impl WebGLRenderingContext {
|
|||
HTMLCanvasElementOrOffscreenCanvas::HTMLCanvasElement(ref canvas) => {
|
||||
document_from_node(&**canvas)
|
||||
},
|
||||
HTMLCanvasElementOrOffscreenCanvas::OffscreenCanvas(ref canvas) => {
|
||||
HTMLCanvasElementOrOffscreenCanvas::OffscreenCanvas(ref _canvas) => {
|
||||
// TODO: Support retrieving image pixels here for OffscreenCanvas
|
||||
return Ok(None);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue