mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 801676 - Follow-up: Add comment explaining why we use JPEG instead of PNG in getScreenshot(). r=jlebar DONTBUILD
This commit is contained in:
parent
fb4cba1d68
commit
4717af6d22
@ -462,6 +462,9 @@ BrowserElementChild.prototype = {
|
||||
content.innerHeight, "rgb(255,255,255)");
|
||||
sendAsyncMsg('got-screenshot', {
|
||||
id: data.json.id,
|
||||
// Hack around the fact that we can't specify opaque PNG, this requires
|
||||
// us to unpremultiply the alpha channel which is expensive on ARM
|
||||
// processors because they lack a hardware integer division instruction.
|
||||
rv: canvas.toDataURL("image/jpeg")
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user