• Christian Fremerey's avatar
    Reland [Video Capture Service] Inject GPU dependencies when starting service via extension · ac94dafa
    Christian Fremerey authored
    Patchset 1 is the reverted CL as previously reviewed.
    Patchset 2 is the fix.
    
    The reason for the revert was a linker error for component builds.
    The fix is to add a missing CONTENT_EXPORT.
    
    ---
    
    Original CL description:
    
    The video capture service requires GPU dependencies to be injected after startup
    in order to enable accelerated MJPEG decoding. This CL adds this injection call
    where the service is started from the media_perception_private extension.
    
    The injected dependencies use classes that used to live in
    content/browser/renderer_host/media. To be able to reuse them for the
    extension, this CL moves them to a location that is accessible to both
    usage sites, i.e. to content/browser/gpu with a public interface in
    content/public/browser.
    
    TBR=jam@chromium.org
    
    Bug: 877690
    Change-Id: Ibeb29361c762d8366f1433d918e8abead0a39173
    Reviewed-on: https://chromium-review.googlesource.com/1208821Reviewed-by: default avatarChristian Fremerey <chfremer@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Christian Fremerey <chfremer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589242}
    ac94dafa
media_stream_manager.cc 74.5 KB