by Jonas » Wed Jul 05, 2017 1:05 pm
I think so -- I think I need a callback to the rendering process.
I am updating the DOM and then saving the rendered off-screen buffer data to disk (as a test). My issue is that when I save the buffer it does not always reflect the latest DOM update. I'm guessing this is because Chromium renders in a separate thread. Probably what this requires is an event that gets called by the rendering thread when it completes so that my main thread knows the buffer is has been rendered with the updated DOM and is ready to be used.
My eventual goal is to write the rendered data to a video I/O card. So, I would need to update the DOM and get a signal that it has been rendered to the off-screen buffer all within 16.6 milliseconds.