Remove deprecated CroppingWindowCapturer::Create
BUG=webrtc:6513 Review-Url: https://codereview.webrtc.org/2513103003 Cr-Commit-Position: refs/heads/master@{#15173}
This commit is contained in:
@ -101,12 +101,8 @@ void CroppingWindowCapturer::OnCaptureResult(
|
||||
}
|
||||
|
||||
#if !defined(WEBRTC_WIN)
|
||||
// static
|
||||
DesktopCapturer* CroppingWindowCapturer::Create(
|
||||
const DesktopCaptureOptions& options) {
|
||||
return DesktopCapturer::CreateWindowCapturer(options).release();
|
||||
}
|
||||
|
||||
// CroppingWindowCapturer is implemented only for windows. On other platforms
|
||||
// the regular window capturer is used.
|
||||
// static
|
||||
std::unique_ptr<DesktopCapturer> CroppingWindowCapturer::CreateCapturer(
|
||||
const DesktopCaptureOptions& options) {
|
||||
|
||||
@ -24,8 +24,6 @@ namespace webrtc {
|
||||
class CroppingWindowCapturer : public DesktopCapturer,
|
||||
public DesktopCapturer::Callback {
|
||||
public:
|
||||
// Deprecated, use CreateCapturer()
|
||||
static DesktopCapturer* Create(const DesktopCaptureOptions& options);
|
||||
static std::unique_ptr<DesktopCapturer> CreateCapturer(
|
||||
const DesktopCaptureOptions& options);
|
||||
|
||||
|
||||
@ -209,12 +209,6 @@ DesktopRect CroppingWindowCapturerWin::GetWindowRectInVirtualScreen() {
|
||||
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
DesktopCapturer* CroppingWindowCapturer::Create(
|
||||
const DesktopCaptureOptions& options) {
|
||||
return new CroppingWindowCapturerWin(options);
|
||||
}
|
||||
|
||||
// static
|
||||
std::unique_ptr<DesktopCapturer> CroppingWindowCapturer::CreateCapturer(
|
||||
const DesktopCaptureOptions& options) {
|
||||
|
||||
Reference in New Issue
Block a user