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

Unified Diff: webrtc/modules/video_capture/video_capture_factory.cc

Issue 1477013005: Replace RefCountImpl with rtc::RefCountedObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add back explicit Release()s in test Created 4 years, 9 months 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/video_capture/video_capture_factory.cc
diff --git a/webrtc/modules/video_capture/video_capture_factory.cc b/webrtc/modules/video_capture/video_capture_factory.cc
index 618c08bac64dd8f340e0158540aec7f4023700a7..927beba080e2cba0ed325b937301ff8bf09ad40a 100644
--- a/webrtc/modules/video_capture/video_capture_factory.cc
+++ b/webrtc/modules/video_capture/video_capture_factory.cc
@@ -12,10 +12,10 @@
#include "webrtc/modules/video_capture/video_capture_impl.h"
-namespace webrtc
-{
+namespace webrtc {
-VideoCaptureModule* VideoCaptureFactory::Create(const int32_t id,
+rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create(
+ const int32_t id,
const char* deviceUniqueIdUTF8) {
#if defined(ANDROID)
return nullptr;
@@ -24,7 +24,8 @@ VideoCaptureModule* VideoCaptureFactory::Create(const int32_t id,
#endif
}
-VideoCaptureModule* VideoCaptureFactory::Create(const int32_t id,
+rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create(
+ const int32_t id,
VideoCaptureExternal*& externalCapture) {
return videocapturemodule::VideoCaptureImpl::Create(id, externalCapture);
}
« no previous file with comments | « webrtc/modules/video_capture/video_capture_factory.h ('k') | webrtc/modules/video_capture/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698