Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1123)

Unified Diff: webrtc/modules/desktop_capture/cropping_window_capturer.cc

Issue 2490063002: Remove ScreenCapturer and WindowCapturer (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/cropping_window_capturer.cc
diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer.cc b/webrtc/modules/desktop_capture/cropping_window_capturer.cc
index f0382c3e8f46e159e99b6e398062e05a4e61be13..8f1c772c995b639b64309baa42eba09bc58edb12 100644
--- a/webrtc/modules/desktop_capture/cropping_window_capturer.cc
+++ b/webrtc/modules/desktop_capture/cropping_window_capturer.cc
@@ -21,8 +21,7 @@ CroppingWindowCapturer::CroppingWindowCapturer(
callback_(NULL),
window_capturer_(DesktopCapturer::CreateRawWindowCapturer(options)),
selected_window_(kNullWindowId),
- excluded_window_(kNullWindowId) {
-}
+ excluded_window_(kNullWindowId) {}
CroppingWindowCapturer::~CroppingWindowCapturer() {}
@@ -103,9 +102,9 @@ void CroppingWindowCapturer::OnCaptureResult(
#if !defined(WEBRTC_WIN)
// static
-WindowCapturer*
-CroppingWindowCapturer::Create(const DesktopCaptureOptions& options) {
- return WindowCapturer::Create(options);
+DesktopCapturer* CroppingWindowCapturer::Create(
+ const DesktopCaptureOptions& options) {
+ return DesktopCapturer::CreateWindowCapturer(options).release();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698