On 8/3/20 5:03 AM, shangjiaxuan9905032...@gmail.com wrote:
In certain cases of embedding a html rendering component into an application, the application may want to do the rendering itself, and composing the html view as it needs, firing events when the outer event loop deems the event is for the html view. A typical use case is embedding it into a game engine, and displaying it on a in-game surface or widget, only updating the texture when a repaint is issued in a recent frame. The current code would mean implementing all the implementation specific code as if the user was porting gecko to a new platform. The headless mode seems to be a solution, but there's not much documentation on how to retrieve the frame whether in ram or vram, also there's no audio callback implemented for decoded audio. Is there a way to use gecko primarily only as a compositor, and let the host that knows about the backend do everything else? (The data required in http request could be retrieved in a callback and stored for the duration of browser lifetime in theory.)
This is probably not the best forum to get your answer. I suggest dev-platform@ or dev-tech-gfx@.
On Android, GeckoView should be very straight-forward to use, hopefully, but I'm not familiar with similar efforts for desktop. I know there are folks that do it, but I'm not particularly familiar with what's involved in doing it.
Cheers, -- Emilio
_______________________________________________ dev-tech-layout mailing list dev-tech-layout@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-layout
_______________________________________________ dev-tech-layout mailing list dev-tech-layout@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-layout