mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Don't bother with the global in ImageData::get_image_data
This commit is contained in:
parent
854a3dff68
commit
2400b91d05
4 changed files with 6 additions and 8 deletions
|
@ -305,8 +305,7 @@ impl WebGLRenderingContext {
|
|||
// complexity is worth it.
|
||||
let (pixels, size) = match source {
|
||||
ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::ImageData(image_data) => {
|
||||
let global = self.global();
|
||||
(image_data.get_data_array(&global.r()), image_data.get_size())
|
||||
(image_data.get_data_array(), image_data.get_size())
|
||||
},
|
||||
ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::HTMLImageElement(image) => {
|
||||
let img_url = match image.get_url() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue