Closed Bug 1278586 Opened 8 years ago Closed 5 years ago

PageThumbUtils.createSnapshotThumbnail is inefficient

Categories

(Firefox :: New Tab Page, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mstange, Unassigned)

Details

On platforms with GPU-accelerated canvas backends and software content drawing, PageThumbUtils.createSnapshotThumbnail is rather inefficient: drawWindow draws content into a main memory backed surface using software rendering, then that surface is drawn to the GPU-accelerated canvas (which does a texture upload), and at the end JS calls toBlob which does readback to get the pixels.

Maybe canvas is not the right place to have the drawWindow method. We could have a tab snapshot API that is implemented in C++.
And that API should return an ImageBitmap.
Component: General → New Tab Page
Product: Toolkit → Firefox

Hello!

This bug has been closed due to inactivity and/or the potential for this bug to no longer be an issue with the new Discovery Stream-powered New Tab experience.

Please help us triage by reopening if this issue still persists and should be addressed.

Thanks!

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.