зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801676 - Follow-up: Add comment explaining why we use JPEG instead of PNG in getScreenshot(). r=jlebar DONTBUILD
This commit is contained in:
Родитель
3c5fbe062a
Коммит
5554aa327e
|
@ -462,6 +462,9 @@ BrowserElementChild.prototype = {
|
||||||
content.innerHeight, "rgb(255,255,255)");
|
content.innerHeight, "rgb(255,255,255)");
|
||||||
sendAsyncMsg('got-screenshot', {
|
sendAsyncMsg('got-screenshot', {
|
||||||
id: data.json.id,
|
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")
|
rv: canvas.toDataURL("image/jpeg")
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче