Index: webrtc/video_encoder.h |
diff --git a/webrtc/video_encoder.h b/webrtc/video_encoder.h |
index 5ef5fa64c768c4a8c149a061fe652589e734cb2a..87cbb98a7e70cca19049eb9eec7cc5dd8d4ce4be 100644 |
--- a/webrtc/video_encoder.h |
+++ b/webrtc/video_encoder.h |
@@ -123,7 +123,8 @@ class VideoEncoder { |
virtual int32_t CodecConfigParameters(uint8_t* /*buffer*/, int32_t /*size*/) { |
return -1; |
} |
- virtual void OnDroppedFrame() {}; |
+ virtual void OnDroppedFrame() {} |
+ virtual bool SupportsNativeHandle() const { return false; } |
}; |
// Class used to wrap external VideoEncoders to provide a fallback option on |
@@ -149,6 +150,7 @@ class VideoEncoderSoftwareFallbackWrapper : public VideoEncoder { |
int32_t SetRates(uint32_t bitrate, uint32_t framerate) override; |
void OnDroppedFrame() override; |
+ bool SupportsNativeHandle() const override; |
private: |
const EncoderType encoder_type_; |