Closed Bug 431828 Opened 16 years ago Closed 8 years ago

Page with ARGB32 gif images scrolling/painting is slow.

Categories

(Core Graveyard :: Widget: Qt, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: romaxa, Unassigned)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Original source is CNN.com.

Optimized image surface for ARGB32 gif not created, and image draw happen with slow path (fillPath)....

I think we should use drawPixmap or drawImage, for painting animated gif frames.
Attached file oprofile data
I guess we have to create mQPainterSurface in nsThebesImage class....
And implement the same stuff as in bugs:
Bug 414685  and Bug 343655
Attached patch Possible fix.... (obsolete) — Splinter Review
Vlad can you check this way to fix this bug?
Attachment #319025 - Flags: review?(vladimir)
Attachment #319025 - Attachment is obsolete: true
Attachment #319026 - Flags: review?(vladimir)
Attachment #319025 - Flags: review?(vladimir)
Comment on attachment 319026 [details] [diff] [review]
Removed check in GetImageSurface which prevent to get ImageSurface

hmm.. this approach eat too much memory...
Attachment #319026 - Attachment is obsolete: true
Attachment #319026 - Flags: review?(vladimir)
Yes, that duplicates each image as a pixmap; we don't optimize gif image frames because they normally are only used once, but we could be smarter about that for gifs with a small number of frames (including 1).
In bug 1282866, I have removed the QT code from the Firefox tree with the approval of the active peer. That code is not currently maintained by any team.

I have looked through the bugs in the Widget: Qt bugzilla component and I believe all of these are no longer relevant because the Qt code has been removed. If you believe that this bug is still valid, please move it to another more appropriate bugzilla component as you reopen it.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: