<p>Skia 2D's one notable backend in OpenGL, but how does it work under the hood to render?</p>

<p>Say, we need to draw an anti-aliased circle. Does Skia:</p>

<ul>
<li>make a quad (using 2 triangles) and paint the circle on top of it
using auto generated shaders?</li>
<li>Or, makes hundreds of triangles and arrange them into a fan? (plus
possible tessellation)</li>
<li>Or, something else?</li>
</ul>

CC BY-SA 4.0
2018-08-03T04:55:56.710Z
That's probably something only the people who have the source code can tell you.
user1118321
CC BY-SA 4.0
2018-08-13T09:04:47.887Z
@user1118321 We are all those people. https://github.com/google/skia
Dan Hulme
CC BY-SA 4.0
2018-08-13T15:49:11.270Z
Then why is this even a question? OP can simply go look. Perhaps you could post that as an answer?
user1118321
<opengl><shader><glsl><2d-graphics><triangulation>
How Skia uses OpenGL backend?
Abrar Borno
# How Skia uses OpenGL backend?

(Asked by: username_0 on 2018-08-02)

Skia 2D's one notable backend in OpenGL, but how does it work under the hood to render?

Say, we need to draw an anti-aliased circle. Does Skia:

* make a quad (using 2 triangles) and paint the circle on top of it
  using auto generated shaders?
* Or, makes hundreds of triangles and arrange them into a fan? (plus
  possible tessellation)
* Or, something else?

**Tags:** opengl, shader, glsl, 2d-graphics, triangulation

> **Comments:**
> **username_1**: That's probably something only the people who have the source code can tell you.  
> **username_2**: @username_1 We are all those people. https://github.com/google/skia  
> **username_1**: Then why is this even a question? OP can simply go look. Perhaps you could post that as an answer?  

---

## 0 answers

