Rendering to offscreen buffer

403 views
Skip to first unread message

uzair jaleel

unread,
Aug 5, 2021, 9:30:08 AM8/5/21
to Graphics-dev
Hello,

We are working on platform similar to linux and there is requirement where we want to render all composited content to an offscreen buffer like texture and
then draw that texture content onto a platform window.

Our requirement is that a third party application creates platform window in application side and we need to render the composited(UI+web page content) contents on that window.

Please could you help us pointing out in chromium code if support for offscreen rendering all ready exist ?

are rendered into offscreen framebuffer backed by texture. 

Please could you let us know is there some scenario which is currently using fbo in class GLOutputSurfaceOffscreen ?

Your inputs will help us proceed in right direction.

Thanks in Advance

Sunny Sachanandani

unread,
Aug 5, 2021, 2:48:40 PM8/5/21
to uzair jaleel, Graphics-dev
> Our requirement is that a third party application creates platform window in application side and we need to render the composited(UI+web page content) contents on that window.

When you say "application side" do you mean that the window is created in the browser process?  Or in the viz/gpu process?  You'll also need to figure out a way to put the offscreen fbo contents on to the window, if you haven't already.  The OS might impose restrictions on what you can do with a window in another process (e.g. with direct composition on Windows).

are rendered into offscreen framebuffer backed by texture. 

If you're targeting a recent version of Chromium, you need to look at SkiaOutputDeviceOffscreen instead since we've migrated to SkiaRenderer on most platforms.

Please could you let us know is there some scenario which is currently using fbo in class GLOutputSurfaceOffscreen ?


Others might know if we're using it in another non-testing scenario.


uzair jaleel

unread,
Aug 6, 2021, 2:12:46 AM8/6/21
to Graphics-dev, sun...@chromium.org, Graphics-dev, uzair jaleel
Hello Sunny,

Thanks for replying.

>When you say "application side" do you mean that the window is created in the browser process?  Or in the viz/gpu process? 

Window is created in browser process.

> You'll also need to figure out a way to put the offscreen fbo contents on to the window, if you haven't already.  The OS might impose restrictions on what you can do with a window in another process (e.g. with direct composition on Windows).

Is there any related code in chromium which draws the contents of offscreen fbo on window ?
Reply all
Reply to author
Forward
0 new messages