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

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.