what is --enable-delegated-renderer used for?

1,540 views
Skip to first unread message

Kevin Li

unread,
Nov 5, 2013, 11:42:33 PM11/5/13
to graphi...@chromium.org
Hi,

I'm confused with this. What is it used for?
I have checked it and found it is used to create a DelegatedCompositorOutputSurface which is inherited from CompositorOutputSurface.
In CompositorOutputSurface, it is only used in CompositorOutputSurface::SwapBuffers, which send a different msg.
But, I'm still unclear of it.

Can someone explain me why we need this in high level?


Thanks

Antoine Labour

unread,
Nov 5, 2013, 11:54:31 PM11/5/13
to Kevin Li, graphics-dev
Delegated renderer, AKA Übercompositor makes the renderer process skip its compositing pass, and instead sends a series of quads (high-level drawing commands) to the browser process, so that it can merge it with its own compositing pass, saving one full pass, reducing the GPU fill rate.
You'll see that the compositor in the renderer process uses a different output - DelegatingRenderer instead of GLRenderer - and, as you discovered, will send a different message (also sends it to the browser instead of the GPU process). On the browser side, the RenderWidgetHostView* will crete a different type of layer (DelegatedRendererLayer instead of TextureLayer).

Antoine

Antoine Labour

unread,
Nov 6, 2013, 12:14:10 AM11/6/13
to Rohan Del, graphics-dev



On Tue, Nov 5, 2013 at 9:10 PM, Rohan Del <zakoide...@gmail.com> wrote:

So is delegated renderer used in android by default?


Not currently. https://code.google.com/p/chromium/issues/detail?id=208551 has the list of issues blocking turning this on by default.

Antoine

To unsubscribe from this group and stop receiving emails from it, send an email to graphics-dev...@chromium.org.

Rohan Del

unread,
Nov 6, 2013, 1:38:29 AM11/6/13
to Antoine Labour, graphics-dev
I also observed that stream texture factory android class is a new approach used only for android. Why is it necessary??

Daniel Sievers

unread,
Nov 7, 2013, 1:58:02 PM11/7/13
to graphi...@chromium.org, Antoine Labour


On Tuesday, November 5, 2013 10:38:29 PM UTC-8, StarDust wrote:
I also observed that stream texture factory android class is a new approach used only for android. Why is it necessary??



It's the support for drawing Android SurfaceTextures in the chromium gpu stack. It's used with WebMediaPlayerAndroid and cc to composite hardware-decoded video content.
Reply all
Reply to author
Forward
0 new messages