webrtc/api/frame_transformer_interface.cc
Tony Herre a45c7056ad Add passkey to TransformableFrameInterface to prevent external impls
This makes the downcasts currently used in eg
modules/rtp_rtcp/source/rtp_sender_video_frame_transformer_delegate.cc
safer.

Bug: webrtc:339815768
Change-Id: Ie6c7ab84666d399dbca4c95846b850aac5327f1a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/350361
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Tony Herre <herre@google.com>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42325}
2024-05-16 13:12:51 +00:00

26 lines
933 B
C++

/*
* Copyright 2024 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "api/frame_transformer_interface.h"
namespace webrtc {
TransformableFrameInterface::TransformableFrameInterface(
TransformableFrameInterface::Passkey) {}
TransformableVideoFrameInterface::TransformableVideoFrameInterface(
TransformableFrameInterface::Passkey passkey)
: TransformableFrameInterface(passkey) {}
TransformableAudioFrameInterface::TransformableAudioFrameInterface(
TransformableFrameInterface::Passkey passkey)
: TransformableFrameInterface(passkey) {}
} // namespace webrtc