I'm working on an application that uses cefpython in windowed mode, that is, without offscreen rendering. I need an event handler to be dispatched when a new frame is drawn by the browser, but it seems the RenderHandler.OnPaint callback doesn't work in windowed mode.
Is there any other way to get this event with CEF/cefpython?
I'm also currently exploring using X11's DAMAGE extension, but it doesn't seem to do what I want at the moment.
Thanks,
Joe
For a little context, I have a Linux application that uses CEF. I've written a compositing window manager that redirects the CEF window to a pixmap, then binds that pixmap to a texture. The texture is rendered to the screen.
Currently, the texture is rendered at 60 FPS, regardless of whether or not the browser has drawn anything, and this uses a lot of the GPU. I'm looking for an event from the browser to signal that something has been painted, so that I can redraw the texture in my compositor.
[1] https://bitbucket.org/chromiumembedded/cef/issues/1006/cef3-support-rendering-to-a-hardware-gl