Open Bug 1600296 Opened 6 years ago Updated 2 years ago

CSS invert() function slows video playback when applied twice

Categories

(Core :: Graphics, defect, P3)

69 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: contact, Unassigned)

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Attached file firefox-double-invert-reduction.html (obsolete) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

Apply an invert() filter twice to a <video> element.

Actual results:

The video playback becomes stuttery. CPU usage goes very high.

Expected results:

The video playback would be smooth. Ideally no inversion would occur, or at least it would happen on the GPU and be very efficient. Chrome and Safari do not fall off the HW-accellerated path applying this CSS.

Component: Untriaged → Audio/Video: Playback
Keywords: perf
Product: Firefox → Core

CSS filters do not affect the playback stack. I'm not sure of the proper component for this. Guessing graphics.

Component: Audio/Video: Playback → Graphics

The priority flag is not set for this bug.
:jbonisteel, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jbonisteel)

Can you attach the contents of your about:support as a text file?

Flags: needinfo?(jbonisteel) → needinfo?(contact)
Priority: -- → P3
Severity: normal → S3

Profile : https://share.firefox.dev/44yZjCl
GPU use is 33%. Chrome has 6% GPU use.

Flags: needinfo?(contact)
Attachment #9112537 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: