Remove deprecated API
BUG=none Review-Url: https://codereview.webrtc.org/2865663002 Cr-Commit-Position: refs/heads/master@{#18044}
This commit is contained in:
@ -33,8 +33,6 @@ class MockVCMReceiveCallback : public VCMReceiveCallback {
|
||||
MockVCMReceiveCallback() {}
|
||||
virtual ~MockVCMReceiveCallback() {}
|
||||
|
||||
// TODO(ilnik): Remove using ... once deprecation is done.
|
||||
using VCMReceiveCallback::FrameToRender;
|
||||
MOCK_METHOD3(FrameToRender,
|
||||
int32_t(VideoFrame&, rtc::Optional<uint8_t>, VideoContentType));
|
||||
MOCK_METHOD1(ReceivedDecodedReferenceFrame, int32_t(const uint64_t));
|
||||
|
||||
@ -61,17 +61,10 @@ struct VCMFrameCount {
|
||||
// rendered.
|
||||
class VCMReceiveCallback {
|
||||
public:
|
||||
// TODO(ilnik): Once deprecation is complete, change this to pure virtual.
|
||||
virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
|
||||
rtc::Optional<uint8_t> qp,
|
||||
VideoContentType /*content_type*/) {
|
||||
return FrameToRender(videoFrame, qp);
|
||||
}
|
||||
// DEPRECATED. Use the other overloaded version.
|
||||
virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
|
||||
rtc::Optional<uint8_t> qp) {
|
||||
return -1;
|
||||
}
|
||||
VideoContentType /*content_type*/) = 0;
|
||||
|
||||
virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -57,8 +57,6 @@ class VideoStreamDecoder : public VCMReceiveCallback,
|
||||
rtc::VideoSinkInterface<VideoFrame>* incoming_video_stream);
|
||||
~VideoStreamDecoder();
|
||||
|
||||
// TODO(ilnik): remove this once deprecated API is removed.
|
||||
using VCMReceiveCallback::FrameToRender;
|
||||
// Implements VCMReceiveCallback.
|
||||
int32_t FrameToRender(VideoFrame& video_frame,
|
||||
rtc::Optional<uint8_t> qp,
|
||||
|
||||
Reference in New Issue
Block a user