• Alexandre Courbot's avatar
    media/gpu/v4l2(s)vda: recreate image processor device on resolution change · 9e2856b7
    Alexandre Courbot authored
    When the resolution changes, we recreate the image processor device
    entirely. However we used to do so while reusing the same V4L2Device
    instance, which is not supported and triggers a DCHECK() with Debug
    builds.
    
    This behavior is wrong anyway since we might want to use another image
    processor device with the new resolution.
    
    This also seems to be effective in fixing bug 1029396.
    
    BUG=chromium:1029396
    TEST=video.DecodeAccel.h264_resolution_switch passes 100 times in a row
    on Hana.
    TEST=video.DecodeAccel.h264_resolution_switch passes on Hana without
    triggering DCHECK().
    
    Change-Id: Ib506d9f038810a0683b806f8385746dce16ecd56
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002250
    Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
    Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
    Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#732259}
    9e2856b7
v4l2_video_decode_accelerator.cc 97 KB