Introduce an IsMutable method on VideoFrameBuffer.
Unlike HasOneRef, it can be overridden to always return false in
immutable subclasses.
I'm also investigating overiding it in PooledI420Buffer, to directly
inherit I420Buffer but ignore the reference from the pool. Still
unclear if that will work out.
BUG=webrtc:5682
Committed: https://crrev.com/6bd10f2c1ac912cbe5addd880e559d59274c60e6
Cr-Commit-Position: refs/heads/master@{#12365}
R=magjed@webrtc.org, pbos@webrtc.org, perkj@webrtc.org
Review URL: https://codereview.webrtc.org/1881933004 .
Cr-Original-Commit-Position: refs/heads/master@{#12404}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 47fe34c2bd38927d78925174390a9e07efc3752f
6 files changed