Closed Bug 578511 Opened 14 years ago Closed 14 years ago

Aero Peek needs an API from Canvas to disable sync decoding of images

Categories

(Core :: Graphics: Canvas2D, defect)

All
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: bholley, Assigned: bholley)

References

Details

(Whiteboard: [decodeondraw])

Attachments

(2 files)

Canvas drawImage calls RenderDocument:
http://mxr.mozilla.org/mozilla-central/source/content/canvas/src/nsCanvasRenderingContext2D.cpp#3675

RenderDocument forces sync decoding on all drawn images, which will take effect when image discarding is switched back on (bug 563088):
http://mxr.mozilla.org/mozilla-central/source/layout/base/nsPresShell.cpp#5290

Unfortunately, this will slow down Aero Peek, because it has to sync decode the images for 20 pages. We want to let those images show up and render asynchronously.
Attached patch flag patch v1Splinter Review
Added a patch to make the flag available. Pushed to try as aa413bf0b2e0, and flagging roc for review.

Rob - Can you whip up a quick aero-peek patch to add this flag in the right place?
Assignee: nobody → bobbyholley+bmo
Status: NEW → ASSIGNED
Attachment #458108 - Flags: review?(roc)
this looks green on try.
Comment on attachment 458108 [details] [diff] [review]
flag patch v1

oh hm I guess this needs sr too. Flagging vlad.
Attachment #458108 - Flags: superreview?(vladimir)
Component: General → Canvas: 2D
Product: Firefox → Core
QA Contact: general → canvas.2d
Attachment #458108 - Flags: superreview?(vladimir) → superreview+
Blocks: 563088
This blocks turning discarding back on (bug 563088), which is a blocker. Nominating.
OS: Mac OS X → Windows 7
Hardware: x86 → All
Version: unspecified → Trunk
blocking2.0: --- → ?
Here's the frontend bits. Pop is clearly seen when loading the thumbnails. Not going to be seen for the live previews since we cache the thumbnail at full size and use it for the live preview.
Attachment #460333 - Flags: review?(gavin.sharp)
Attachment #460333 - Flags: review?(gavin.sharp) → review+
Pushed to mozilla-central:
http://hg.mozilla.org/mozilla-central/rev/ac9dca1f6260
http://hg.mozilla.org/mozilla-central/rev/2e3fbf618f08

Resolving fixed.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: