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

Unified Diff: webrtc/modules/video_capture/video_capture_impl.h

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_impl.h
diff --git a/webrtc/modules/video_capture/video_capture_impl.h b/webrtc/modules/video_capture/video_capture_impl.h
index 4aa39394c78176b7cd21198d0d2c6c2edb2b6387..9c2cad7c95c91def1c338209a0f74cc374ecb32f 100644
--- a/webrtc/modules/video_capture/video_capture_impl.h
+++ b/webrtc/modules/video_capture/video_capture_impl.h
@@ -15,6 +15,7 @@
* video_capture_impl.h
*/
+#include "webrtc/base/scoped_ref_ptr.h"
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/common_video/rotation.h"
#include "webrtc/modules/video_capture/video_capture.h"
@@ -38,8 +39,9 @@ public:
* id - unique identifier of this video capture module object
* deviceUniqueIdUTF8 - name of the device. Available names can be found by using GetDeviceName
*/
- static VideoCaptureModule* Create(const int32_t id,
- const char* deviceUniqueIdUTF8);
+ static rtc::scoped_refptr<VideoCaptureModule> Create(
+ const int32_t id,
+ const char* deviceUniqueIdUTF8);
/*
* Create a video capture module object used for external capture.
@@ -47,8 +49,9 @@ public:
* id - unique identifier of this video capture module object
* externalCapture - [out] interface to call when a new frame is captured.
*/
- static VideoCaptureModule* Create(const int32_t id,
- VideoCaptureExternal*& externalCapture);
+ static rtc::scoped_refptr<VideoCaptureModule> Create(
+ const int32_t id,
+ VideoCaptureExternal*& externalCapture);
static DeviceInfo* CreateDeviceInfo(const int32_t id);
« no previous file with comments | « webrtc/modules/video_capture/video_capture_factory.cc ('k') | webrtc/modules/video_capture/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698