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?
  • $\begingroup$ That's probably something only the people who have the source code can tell you. $\endgroup$ – user1118321 Aug 3 '18 at 4:55
  • $\begingroup$ @user1118321 We are all those people. github.com/google/skia $\endgroup$ – Dan Hulme Aug 13 '18 at 9:04
  • $\begingroup$ Then why is this even a question? OP can simply go look. Perhaps you could post that as an answer? $\endgroup$ – user1118321 Aug 13 '18 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.