Closed
Bug 1186204
Opened 9 years ago
Closed 10 months ago
make animations of transform with backface-visibility:hidden work on the compositor thread
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
124 Branch
People
(Reporter: dbaron, Assigned: emilio)
References
(Blocks 3 open bugs)
Details
Attachments
(1 file)
In bug 1186061 I'm going to disable compositor-thread (off-main-thread, OMT) animation of transform animations that have backface-visibility:hidden.
This bugs covers reenabling them, which I believe means detecting that the transform animation has crossed from showing the front face to showing the back face, and thus that we need to rerender. This gets complicated in combination with preserve-3d (which we also don't support doing on the compositor).
Comment 1•9 years ago
|
||
I don't think we need to rerender when we transition, since any 'backface' that is expected to become visible should be a separate element (with a separate layer).
I think we can get away with just having a flag specifying that the backface is hidden, and have the compositor cull the layer if necessary.
Comment 2•8 years ago
|
||
According the discussion on a mail loop with dbaron and Matt, we are ready to move backface hidden and transform animation to the compositor.
Comment 3•8 years ago
|
||
Cool! So what's necessary here? Just a layer flag for backface-visibility, and the LayerManagerComposite code to not render those layers if they face away from the camera?
Comment 4•8 years ago
|
||
Does this not work already?
http://searchfox.org/mozilla-central/source/gfx/layers/composite/ContainerLayerComposite.cpp#202
Comment 5•8 years ago
|
||
Oh! And the patch in bug 779598 already removes the backface-visibility check.
Comment 6•8 years ago
|
||
The problem that this bug tried to fix had been fixed by other bugs.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 7•6 years ago
|
||
Reopening since I am going to fix only preserve-3d case in bug 779598.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•5 years ago
|
Blocks: compositor-animations
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 10•10 months ago
|
||
Hiro, do you know what exactly doesn't work here nowadays if we remove this check? Maybe WebRender deals fine with them?
Flags: needinfo?(hikezoe.birchill)
Comment 11•10 months ago
|
||
The only one test case I could recall is animate-backface-hidden.html. I confirmed the test case works fine even without the check locally. So yeah, now we can drop the check.
Flags: needinfo?(hikezoe.birchill)
Assignee | ||
Comment 13•10 months ago
|
||
The check is not fully correct as per the comment (bug 779598 removed
the preserve-3d check).
I went through the relevant bugs and nothing misbehaves with this
afaict.
Updated•10 months ago
|
Assignee: nobody → emilio
Comment 14•10 months ago
|
||
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/51c5d71d8ff4
Allow animations with backface-visibility: hidden to run in the compositor. r=firefox-animation-reviewers,devtools-reviewers,nchevobbe,boris
Comment 15•10 months ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 8 years ago → 10 months ago
status-firefox124:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Updated•9 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•