Closed
Bug 867770
Opened 12 years ago
Closed 12 years ago
Always layerize animated images
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: joe, Assigned: joe)
References
Details
Attachments
(3 files, 1 obsolete file)
|
9.18 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
|
4.39 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
|
4.12 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•12 years ago
|
||
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.
| Assignee | ||
Comment 2•12 years ago
|
||
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)
Updated•12 years ago
|
Attachment #748111 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
A try, rebased on bug 869133: https://tbpl.mozilla.org/?tree=Try&rev=b3b2316f410b
| Assignee | ||
Comment 4•12 years ago
|
||
As requested by Jeff during the rendering work week, this adds a pref for this behaviour.
Attachment #756223 -
Flags: review?(matt.woodrow)
| Assignee | ||
Comment 5•12 years ago
|
||
This tests to make sure we layerize these animated images.
Attachment #756224 -
Flags: review?(matt.woodrow)
| Assignee | ||
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Attachment #756223 -
Flags: review?(matt.woodrow) → review+
Updated•12 years ago
|
Attachment #756224 -
Flags: review?(matt.woodrow) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7de5f90c9371
https://hg.mozilla.org/mozilla-central/rev/b169949f2e80
https://hg.mozilla.org/mozilla-central/rev/46ffad1e32fc
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.
Description
•