• Christopher Cameron's avatar
    Enable SharedImages for VTVideoDecodeAccelerator · 8b7817c7
    Christopher Cameron authored
    Add a method to media::VideoDecodeAccelerator to indicate whether
    SharedImage-backed picture buffers are supported. Make this return
    true only for the VTVideoDecodeAccelerator.
    
    Add a parameter to media::PictureBufferManager::CreatePictureBuffers
    to indicate if SharedImage-backed PictureBuffers are desired.
    
    Hook the two of these together in the ProvidePictureBuffersAsync
    method of media::VdaVideoDecoder.
    
    Video playback fails with the Metal-based command decoder, because
    it binds IOSurfaces as TEXTURE_2D, not TEXTURE_RECTANGLE. Plumb
    through a flag to specify if TEXTURE_RECTANGLE support is present.
    
    Bug: 1108909
    Change-Id: I1e42aa38e122714517724cee87eb51987645e410
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427545
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarccameron <ccameron@chromium.org>
    Reviewed-by: default avatarDan Sanders <sandersd@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#811077}
    8b7817c7
gpu_video_decode_accelerator_helpers.h 4.76 KB