• xjz's avatar
    Monitor VideoResourceUpdater reusing destructed resource in Debug mode. · 66b273c4
    xjz authored
    VideoResourceUpdater software planes use VideoFrame raw pointer and
    video timestamp as the unique ID for each VideoFrame. However, if the
    VideoFrame is destructed and the pointer is reused by a new VideoFrame,
    and if the timestamp is not correctly set, the resource maybe
    incorrectly reused. This CL marks the resource as destructed when the
    original VideoFrame is destructed, and monitors if the destructed
    resource is re-used. The CL only takes effect in Debug mode.
    
    BUG=581480
    CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
    
    Review URL: https://codereview.chromium.org/1688033005
    
    Cr-Commit-Position: refs/heads/master@{#381739}
    66b273c4
video_resource_updater.h 6.43 KB