• Alexandre Courbot's avatar
    media/gpu/v4l2: fix chromium-style errors. · fdd3b55c
    Alexandre Courbot authored
    We have a lot of chromium-style errors happening when enabling V4L2 for
    a non-Chrome OS build, e.g:
    
    ../../media/gpu/v4l2/v4l2_decode_surface.h:139:7: error: [chromium-style] Classes that are ref-counted should have explicit destructors that are declared protected or private.
    class V4L2RequestDecodeSurface : public V4L2DecodeSurface {
    
    and
    
    ../../media/gpu/v4l2/v4l2_slice_video_decoder.h:97:5: error: [chromium-style] Complex constructor has an inlined body.
        DecodeRequest(scoped_refptr<DecoderBuffer> buf, DecodeCB cb, int32_t id)
    
    This CL fixes these errors.
    
    Bug: 990690
    Test: VDA unittest passes on Kukui.
    Change-Id: I3485c855f8affefb7ac99732e11fa78466081d60
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1736346Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
    Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#683941}
    fdd3b55c
v4l2_slice_video_decoder.h 11 KB