A just curious question.
I'm aware that:
Skia, Cairo: library
Direct2D: API
But without any additional components, exclusively on Windows platform, which bears the most features? I'm not talking about performance or programming simplicity.
Is there any possibility that Cairo could use D2D as the rendering backend on Windows platform?
I am using all three in my Sciter as graphics backends so you can compare them in action.
As of today (Nov 20, 2017):
Skia and Direct2D are on par by feature set. And both are feature wise supersets of Cairo.
From these three, only Direct2D (Direct2D v 1.1) supports printing. Skia and Cairo instead are capable of PDF generation so for real printing you will need 3rd party tools.
Direct2D has good integration with DirectX - they can work on the same DXGI device.
But it is far not that trivial to integrate Skia with existing 3D OpenGL code. Even Skia can work with OpenGL backend it changes state of OpenGL device and that creates problems.
With Direct2D you can reach 60-250 FPS.
On Windows, Skia when used with OpenGL backend may surprisingly work better than Direct2D. But YMMV.
On Windows I'd suggest to use Direct2D or Skia.
On MacOS - definitely Skia with OpenGL backend. It is significantly better than Mac's native CoreGraphics.
On Linux/GTK: use Cairo as this is the default rendering API on GTK/Gnome3. And Cairo works there pretty well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With