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

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

Issue 2496993003: CroppingWindowCapturer::CreateCapturer() function to replace raw pointer version (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 8f1c772c995b639b64309baa42eba09bc58edb12..d2cc0ae2e81ed77be2aa5f66fc96803747d9554d 100644
--- a/webrtc/modules/desktop_capture/cropping_window_capturer.cc
+++ b/webrtc/modules/desktop_capture/cropping_window_capturer.cc
@@ -106,6 +106,12 @@ DesktopCapturer* CroppingWindowCapturer::Create(
const DesktopCaptureOptions& options) {
return DesktopCapturer::CreateWindowCapturer(options).release();
}
+
+// static
+std::unique_ptr<DesktopCapturer> CroppingWindowCapturer::CreateCapturer(
+ const DesktopCaptureOptions& options) {
+ return DesktopCapturer::CreateWindowCapturer(options);
+}
#endif
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698