How to draw on a winit window by skia-safe?

Hi everyone, I want to know, can I use winit and skia-safe to draw on a window with multiple platforms (Windows/macOS/Linux, iOS/Android, and Embedded)? It's similar to How to draw on winit window by 2D graphics library?, but I want to remove the dependency on "softbuffer" to run the code on multiple platforms using winit and skia-safe.

assuming you are already familiar with skia in C++, but doesn't know how to integrate skia with winit. I suggest you take a look at the gl-window example, this example creates a winit window, uses glutin to initialize opengl associated with the window, and then create skia renderer from opengl context and surface. (the interesting bits starts from L149)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.