commit | b2075eb504d37a2b38fc53bff8156b5b18058bde | [log] [tgz] |
---|---|---|
author | Ricky Liang <jcliang@chromium.org> | Tue Oct 01 07:44:50 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 01 07:44:50 2019 |
tree | 1eeef6ed5e14490f86be670f5aba9bc3bd000441 | |
parent | 4dc425332d3155428f831df39e11bf7f2c1ed842 [diff] |
media: Retain reference to the wrapped frame in WrapVideoFrame When we use VideoFrame::WrapVideoFrame to soft-apply a different set of format, visible rectangle, and natural size on a source VideoFrame, we have to make sure the source VideoFrame outlives the wrapping frame in most if not all the scenarios. This CL explicitly retains a reference to the wrapped frame inside the wrapping frame when WrapVideoFrame is called. Along with the change, we can remove several empty destruction callbacks that are only used for retaining a reference to the wrapped frame. Bug: 982201 Change-Id: Id81ad65c500fe4f0b47a60d98819408522314129 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1830241 Commit-Queue: Ricky Liang <jcliang@chromium.org> Reviewed-by: Dan Sanders <sandersd@chromium.org> Reviewed-by: Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#701466}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .