Azure Progress

Discussion about official Mozilla Firefox builds
Locked
NVD
Posts: 371
Joined: September 17th, 2010, 7:55 am

Re: Azure Progress

Post by NVD »

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

Skia backend for Azure has landed on inbound, should be in tomorrow's nightly.
dbcooper.dk
Posts: 895
Joined: March 14th, 2010, 3:44 am

Re: Azure Progress

Post by dbcooper.dk »

Is there going to be a preference to use it, or will it require a build flag at compilation?
User avatar
_Alexander
Posts: 1197
Joined: April 1st, 2010, 2:24 pm
Location: Your augmented reality

Re: Azure Progress

Post by _Alexander »

It is an x86 Mac OS X thing
http://magneticpudding.com/ <- My Blog
i5 3570k @ 4.5 Ghz / NV 660 / 32GB DDR3 / 1080p LCD / SSD (120 + 180) / W8 ||| Atom N270 / NV ION / 3GB DDR3 / SSD / 1366x768 / W8
NVD
Posts: 371
Joined: September 17th, 2010, 7:55 am

Re: Azure Progress

Post by NVD »

Hera wrote:It is an x86 Mac OS X thing


Err no, please don't post nonsense if you don't know anything. Skia is used in Chrome/Chromium on Windows, Mac and Linux, Chrome/Chromium OS and Android.

http://en.wikipedia.org/wiki/Skia_Graphics_Engine
dbcooper.dk
Posts: 895
Joined: March 14th, 2010, 3:44 am

Re: Azure Progress

Post by dbcooper.dk »

https://bugzilla.mozilla.org/show_bug.cgi?id=688367#c13

It's only working on mac currently, but you can try it there using
'gfx.canvas.azure.enabled=true'.

Should be in tonight's, or tomorrow night's nightly :)
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Azure Progress

Post by Omega X »

It only works for Mac atm, but will expand to other platforms. "gfx.canvas.azure.enabled=true"
dbcooper.dk
Posts: 895
Joined: March 14th, 2010, 3:44 am

Re: Azure Progress

Post by dbcooper.dk »

NVD
Posts: 371
Joined: September 17th, 2010, 7:55 am

Re: Azure Progress

Post by NVD »

There was no merge from mozilla-inbound to mozilla-central before the nightly was built, so Skia backend is not in today's Nightly.
WonderCsabo
Posts: 2230
Joined: June 25th, 2010, 9:29 am
Location: Budapest, Hungary

Re: Azure Progress

Post by WonderCsabo »

Actually what does Skia do? I see it's a drawing library, but how does it improve performance? And is it working with HWA?
Theliel
Posts: 102
Joined: November 10th, 2005, 8:41 am

Re: Azure Progress

Post by Theliel »

Its a drawing library like Cairo and can use some HWA. Should be faster tham Cairo, but useless for any Windows + Direct2D (win+D2D its much faster). For example, Skia should give better numbers under Android or MAC OS or Windows without a good D2D support.
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Azure Progress

Post by patrickjdempsey »

Theliel wrote:For example, Skia should give better numbers under Android or MAC OS or Windows without a good D2D support.


So possible improvements for people running XP? or newer versions with D2D disabled?
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
WonderCsabo
Posts: 2230
Joined: June 25th, 2010, 9:29 am
Location: Budapest, Hungary

Re: Azure Progress

Post by WonderCsabo »

Theliel wrote:Its a drawing library like Cairo and can use some HWA. Should be faster tham Cairo, but useless for any Windows + Direct2D (win+D2D its much faster). For example, Skia should give better numbers under Android or MAC OS or Windows without a good D2D support.


Basically, the software rendering will be faster with this?
dbcooper.dk
Posts: 895
Joined: March 14th, 2010, 3:44 am

Re: Azure Progress

Post by dbcooper.dk »

IIRC, D2D is called from Cairo currently, and Skia is better suited to work with D2D.
NVD
Posts: 371
Joined: September 17th, 2010, 7:55 am

Re: Azure Progress

Post by NVD »

Skia backend is in today's Nightly, OSX only atm. Windows implementation see the earlier post by dbcooper.dk for link to the bug.
Theliel
Posts: 102
Joined: November 10th, 2005, 8:41 am

Re: Azure Progress

Post by Theliel »

patrickjdempsey wrote:So possible improvements for people running XP? or newer versions with D2D disabled?


Yes, in theory.

as far I know, Skia support HWA through OpenGL, but only partially.

a message from Bas some month ago:

"There's a bunch of reasons, first of all Skia's GPU support hasn't proven itself yet, whereas Direct2D's has. There's also licensing issues with Skia which would need to be resolved, but I don't know much about that. Finally I personally am not sure if I believe Skia is taking the best approach, but that's something that would require more research. This was the fastest road to major improvements on the short term, and the possibility to creating our own consistent GPU rendering on the longer term. Of course we could create a Skia Azure backend for testing!"

In this moment, the best solution for 2D HWA its Direct2D. Its possible use D3D/OGL for the same task, and im sure that a long term its possible make a better implementation that D2D with D3D/OGL, but for now Windows + D2D support its the best options... at least for 1 Year? 2 years?? and MS always can improve D2D. Problems? D2D only work on Vista/7 and depend completely on ms, so bugs and others you must wait to MS fix
Locked