--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/UZY4zK_3oNkJ.
To post to this group, send email to skia-d...@googlegroups.com.
To unsubscribe from this group, send email to skia-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skia-discuss?hl=en.
That's what I also though.
Basically what I'm trying to achieve is :
Composing a layer with some transparent part onto a white (or any other color) surface. Something like a browser's <canvas> element would do on the document body surface.
I could't achieve this efficiently using skia API (I have to keep a decent frame rate). Do you think using FBO is a good plan for this task? Or is there a Skia API in order to manage layers I'm not aware of?
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/Xh7MHbwl1YMJ.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/byuPM4DLLskJ.
If you create an SkGpuDevice using the constructor that takes a config, width, and height then it will be FBO-backed. You can then install that device on the layerCanvas using SkCanvas::setDevice. It should just work and you don't need to call SkCanvas::flush when you switch from one canvas to the other.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/jOV_BVae6mkJ.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/K3yDXVOC7AsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/E-HEnDUsImAJ.