Closed Bug 867770 Opened 12 years ago Closed 12 years ago

Always layerize animated images

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: joe, Assigned: joe)

References

Details

Attachments

(3 files, 1 obsolete file)

Robert O'Callahan (:roc) (Mozilla Corporation) from bug 717872 comment #7: > We'll want to layerize all animated images. That means modifying > nsDisplayImage::GetLayerState and nsDisplayBackgroundImage::GetLayerState to > choose the ACTIVE state for animated images. (Maybe give up if we have to > tile a CSS background image.) Then it's just a matter of making imglib call > SetCurrentImage on the mozilla::layers::ImageContainer at the right times > --- ImageContainer is a thread-safe object and SetCurrentImage can be called > from any thread.
Depends on: 869133
Attached patch wip (obsolete) — Splinter Review
This works for layerizing just a single animated image, displayed not on a page. Doesn't currently layerize about:home with whimsy installed for reasons that I haven't explored yet.
This works for at least some subset of background images and regular <img> elements; we fall back to the regular Thebes layer rendering both when animated images are loading and in cases where we explicitly don't allow it, which is currently the case for about:home (sadly). https://tbpl.mozilla.org/?tree=Try&rev=5229887b24c4
Attachment #747635 - Attachment is obsolete: true
Attachment #748111 - Flags: review?(matt.woodrow)
Attachment #748111 - Flags: review?(matt.woodrow) → review+
Attached patch add prefSplinter Review
As requested by Jeff during the rendering work week, this adds a pref for this behaviour.
Attachment #756223 - Flags: review?(matt.woodrow)
Attached patch testSplinter Review
This tests to make sure we layerize these animated images.
Attachment #756224 - Flags: review?(matt.woodrow)
Attachment #756223 - Flags: review?(matt.woodrow) → review+
Attachment #756224 - Flags: review?(matt.woodrow) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: