summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/api/frame_transformer_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libwebrtc/api/frame_transformer_interface.h')
-rw-r--r--third_party/libwebrtc/api/frame_transformer_interface.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/third_party/libwebrtc/api/frame_transformer_interface.h b/third_party/libwebrtc/api/frame_transformer_interface.h
index d1ea15a54e..afa79b92ea 100644
--- a/third_party/libwebrtc/api/frame_transformer_interface.h
+++ b/third_party/libwebrtc/api/frame_transformer_interface.h
@@ -13,12 +13,11 @@
#include <memory>
#include <string>
-#include <vector>
+#include "api/ref_count.h"
#include "api/scoped_refptr.h"
#include "api/video/encoded_frame.h"
#include "api/video/video_frame_metadata.h"
-#include "rtc_base/ref_count.h"
namespace webrtc {
@@ -54,11 +53,7 @@ class TransformableFrameInterface {
// sender frames to allow received frames to be directly re-transmitted on
// other PeerConnectionss.
virtual Direction GetDirection() const { return Direction::kUnknown; }
- virtual std::string GetMimeType() const {
- // TODO(bugs.webrtc.org/15579): Change this to pure virtual after it
- // is implemented everywhere.
- return "unknown/unknown";
- }
+ virtual std::string GetMimeType() const = 0;
};
class TransformableVideoFrameInterface : public TransformableFrameInterface {
@@ -100,6 +95,12 @@ class TransformedFrameCallback : public rtc::RefCountInterface {
virtual void OnTransformedFrame(
std::unique_ptr<TransformableFrameInterface> frame) = 0;
+ // Request to no longer be called on each frame, instead having frames be
+ // sent directly to OnTransformedFrame without additional work.
+ // TODO(crbug.com/1502781): Make pure virtual once all mocks have
+ // implementations.
+ virtual void StartShortCircuiting() {}
+
protected:
~TransformedFrameCallback() override = default;
};