• Peter Qiu's avatar
    browser: allow non-Renderer processes to bind to ui::mojo::Gpu interface · ad845bdc
    Peter Qiu authored
    Currently, when ui::mojo::Gpu interface is exposed by the Browser process
    (kMash feature is not enabled), only the binding requests from the
    Renderer processes are being handled.
    
    For certain devices and applications, it is desirable to access the
    ui::mojo::Gpu interface from a non-Renderer process, in order for that process
    to access video encode/decode accelerators hosted in the GPU process.
    
    This CL will allow other processes to bind to ui::mojom::Gpu interface
    hosted by the Browser process (assuming allowed by the manifest), by
    also handling ui::mojom::Gpu interface binding requests in
    CommonBrowserInterface. The handling for ui::mojom::Gpu interface binding
    requests from Renderer processes will stay the same.
    
    Bug: 836874
    Test: run content_browsertests
    Change-Id: Ib1e3751d8c593a3c8d29096e7dc9cc609f6a1fa4
    Reviewed-on: https://chromium-review.googlesource.com/1028556Reviewed-by: default avatarKen Rockot <rockot@chromium.org>
    Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
    Commit-Queue: Peter Qiu <zqiu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#564814}
    ad845bdc
content_browser_manifest.json 9.54 KB