Remove DesktopCapturer::Callback::OnCaptureCompleted()
The method was deprecated and shouldn't be used anywhere now. BUG=webrtc:5950 Review-Url: https://codereview.webrtc.org/2080573004 Cr-Commit-Position: refs/heads/master@{#13248}
This commit is contained in:
@ -47,15 +47,7 @@ class DesktopCapturer {
|
||||
// Called after a frame has been captured. |frame| is not nullptr if and
|
||||
// only if |result| is SUCCESS.
|
||||
virtual void OnCaptureResult(Result result,
|
||||
std::unique_ptr<DesktopFrame> frame) {
|
||||
OnCaptureCompleted(frame.release());
|
||||
}
|
||||
|
||||
// Deprecated version of the method above that uses raw pointer instead of
|
||||
// std::unique_ptr<>.
|
||||
// TODO(sergeyu): Remove this method and make OnCaptureResult() pure
|
||||
// virtual. crbug.com/webrtc/5950
|
||||
virtual void OnCaptureCompleted(DesktopFrame* frame) { delete frame; };
|
||||
std::unique_ptr<DesktopFrame> frame) = 0;
|
||||
|
||||
protected:
|
||||
virtual ~Callback() {}
|
||||
|
||||
Reference in New Issue
Block a user