webview icon indicating copy to clipboard operation
webview copied to clipboard

feature request: off screen rendering

Open naychrist opened this issue 8 years ago • 4 comments

Hi There,

If this feature exists or if someone has found a way to do this please do let me know!

I love how simple this project is to work with and was wondering if you would be interested in adding off screen rendering support? This is useful when embedding the web view in other environments such as an Open GL application. If you don't have access to a texture then there could be a callback when ever the image is being re-rendered that would pass a buffer of pixels that you can then copy into an OpenGL texture (or DirectX Texture or image etc). You then also need to manually pass the cursor event into the webview.

Seems that this would be an option to remove some of the existing functionality. I think this would be pretty popular. I and many others have been having a terrible time trying to implement and maintain this with CEF!

Cheers, nay.

naychrist avatar Mar 02 '18 03:03 naychrist

@naychrist Hi, I'm working on this feature. Currently off screen rendering supported in linux and GTK 16c93bc

PooyaEimandar avatar Oct 12 '19 17:10 PooyaEimandar

correct url: https://github.com/zserge/webview/commit/3fd0fcc20ca0140723db0d134aae23149b528607

timotheecour avatar May 15 '20 09:05 timotheecour

Hi! I second that request. Any update on this, especially regarding macOS and Windows implementations? Or at least a few quick inputs in case someone might want to contribute to that feature?

dolphineye avatar Jun 18 '21 11:06 dolphineye

Is there an update on this ? Such a feature is ideal for embedded apps. In many cases, the graphics libs are unavailable or not necessary. The user can supply an RGBA buffer and web view can just render to it. Alternatively, the internal buffer can be exposed without showing the window.

zcream avatar Oct 04 '21 00:10 zcream