Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What graphic library does chrome use [closed]

I know about openGL/directX graphic library that can be used to render graphics. Hardware vendor of Graphic processing unit support these libraries.
I wanted to know about what chrome use to render its stuff.

so i started googling and it came out that:

chrome use webKit to render html page.

and googling for webkit reveals >> webkit is just a frontend.

webkit is just a frontend. It depends on the backend and the hardware support. Google Chrome uses skia as a back-end and is can use software or hardware. So the answer is it depends on the implantation of the back-end and the hardware it is running on. as mentioned on Does WebKit use OpenGL to render CSS transitions?

googling for skia reveals
skia screen shot

Device backends for Skia currently include: what does this means ?
Is it skia is also a frontend/interface and someone else implement it using probably openGL ? or
skia is also a library equivalent to openGL and directX ?


Or a straight forward question be
What library (which is comparable to openGL/directX) does chrome using to render stuff in my computer ?

I am using window 7 on a Dell laptop with no special GPU.

like image 396
Bhuvan Avatar asked Sep 11 '13 09:09

Bhuvan


1 Answers

Chrome and Firefox both use ANGLE (Almost Native Graphics Layer Engine) that layers OpenGL ES 2 on top of Direct3D 9 to implement WebGL.

According to the ANGLE website, "Chrome uses ANGLE for all graphics rendering on Windows, including the accelerated Canvas2D implementation and the Native Client sandbox environment."

So, when you ask whether Chrome uses DirectX or OpenGL... the only real way to answer this is, it's a Frankenstein's monster. It's a bit of both, they ultimately want OpenGL ES to be the core graphics subsystem but since it's not available on Windows they decided to start a project that layers ES on top of D3D9.

This seems like a stupid approach to me, as OpenGL would have been even easier to layer on top of. Not surprisingly, many people have reported getting significantly better WebGL performance by disabling ANGLE and going with native OpenGL on Win32.

like image 117
Andon M. Coleman Avatar answered Sep 17 '22 18:09

Andon M. Coleman