Where is the code about Immediate D3D Window?

1,292 views
Skip to first unread message

Antonidas Yang

unread,
May 10, 2019, 7:04:31 PM5/10/19
to Chromium-dev
Where is the code that chromium draws the pages to the canvas of Immediate D3D Window?

Antonidas Yang

unread,
May 10, 2019, 7:15:01 PM5/10/19
to Chromium-dev
Sorry, it's "Intermediate D3D Window"

Kyle Charbonneau

unread,
May 13, 2019, 10:22:50 AM5/13/19
to Chromium-dev, Graphics-dev
gpu::ChildWindowWin is what creates the "Intermediate D3D Window" for Windows DirectComposition to draw into. I believe that is controlled by gpu::DirectComposition[Child]SurfaceWin, so that might be what you're looking for? That code is in the GPU process.

You mention canvas, which if you mean HTML canvas, exists in the renderer process. There is a lot of code between the renderer process producing pixels and the GPU process displaying those pixels. The Life of a Pixel slides might be useful in that case.

Antonidas Yang

unread,
May 16, 2019, 7:23:14 AM5/16/19
to Chromium-dev, graphi...@chromium.org
Thanks!
Could you please tell me where is the code which browser process display the compositor frames?
Reply all
Reply to author
Forward
0 new messages