Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to ship: Canvas CSS/SVG filters

87 views
Skip to first unread message

Tobias Schneider

unread,
May 27, 2016, 10:00:27 AM5/27/16
to dev-pl...@lists.mozilla.org
I intend to turn Canvas CSS/SVG filters on by default on all platforms. It
has been developed behind the canvas.filters.enabled preference. Google's
Chrome is already shipping this in version 52.

Related bugs:

https://bugzilla.mozilla.org/show_bug.cgi?id=927892
https://bugzilla.mozilla.org/show_bug.cgi?id=1173545

Specification:

https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-filter

Tantek Çelik

unread,
May 27, 2016, 8:44:34 PM5/27/16
to Tobias Schneider, dev-pl...@lists.mozilla.org
Awesome and congrats Tobias! -tantek
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform

Jeff Muizelaar

unread,
May 31, 2016, 2:53:34 PM5/31/16
to Tobias Schneider, Mozilla
How does performance compare to Chrome?

-Jeff

On Thu, May 26, 2016 at 12:40 PM, Tobias Schneider <tschn...@mozilla.com>

Tobias Schneider

unread,
Jun 1, 2016, 3:37:28 PM6/1/16
to Jeff Muizelaar, Mozilla
I got the following numbers running
https://dl.dropboxusercontent.com/u/55355076/benchmark.html?filters=true on
my MacBook Pro (Mid 2014):

Firefox Developer Edition: Skia-GL: 10fps
Skia: 3fps
CG: 10fps
Cairo: 8fps

Chrome Canary 53: 3fps


On Tue, May 31, 2016 at 11:53 AM, Jeff Muizelaar <jmuiz...@mozilla.com>
wrote:

Jet Villegas

unread,
Jun 1, 2016, 5:04:31 PM6/1/16
to Tobias Schneider, Jeff Muizelaar, Mozilla
I'm surprised to see Skia (which I assume is also Chrome 53's canvas
backend) lagging behind CoreGraphics and even Cairo here. Do we have a bug
to track that down? This is the same code that powers our CSS filters, so a
speedup there should help both canvas and content.

--Jet

On Wed, Jun 1, 2016 at 12:08 PM, Tobias Schneider <tschn...@mozilla.com>

Jeff Muizelaar

unread,
Jun 1, 2016, 5:14:30 PM6/1/16
to Tobias Schneider, Mozilla
Can you also get results on Windows?

-Jeff

On Wed, Jun 1, 2016 at 3:05 PM, Tobias Schneider <tschn...@mozilla.com>

Tobias Schneider

unread,
Jun 2, 2016, 10:39:10 AM6/2/16
to Jeff Muizelaar, Mozilla
Just tested on Windows 10 and got 9fps in Firefox(Direct2D) and 5fps in
Chrome Canary. Both test were running with a canvas size of 2560 x 720.
Tats half of my monitor resolution. With a maximized window, Chrome
crashes, Firefox keeps it at 9fps.

On Wed, Jun 1, 2016 at 2:07 PM, Jeff Muizelaar <jmuiz...@mozilla.com>
wrote:
0 new messages