Search code examples
chromium-embedded

What's the difference between the Browser process and Render process in Chromium Embedded Framework?


I've begun reading the documentation for CEF, on their wiki, where there's a frequent referencing to a "Browser process" and a "Render process".

As far as I can tell these two terms are never formally introduced. Is there some other documentation available that describes the purpose of these?


Solution

  • Offscreen rendering mode means:

    • You do not want your CEF application to run as a native OS window with its default decoration.
    • Instead, you want to receive the texture of the rendered HTML page to display as you wish in your application and interact with it.

    To achieve this, you need to configure your main CEF application (the browser process) to run in offscreen mode, communicating with a secondary CEF application of yours (the render process).

    There are two CEF applications that you have to create with different settings and handlers. The browser process launches the render process (by forking and passing information through the command line, etc. which is done by the CEF API).