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

Unified Diff: webrtc/modules/video_capture/video_capture_factory.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_factory.h
diff --git a/webrtc/modules/video_capture/video_capture_factory.h b/webrtc/modules/video_capture/video_capture_factory.h
index 4765be1fdeeeaaf0cbfc4639b81ab50aefa45f85..f05609a643ab01ed177991802ea0e59cd4bd4d8c 100644
--- a/webrtc/modules/video_capture/video_capture_factory.h
+++ b/webrtc/modules/video_capture/video_capture_factory.h
@@ -24,14 +24,16 @@ class VideoCaptureFactory {
// 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.
// 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 VideoCaptureModule::DeviceInfo* CreateDeviceInfo(
const int32_t id);
« no previous file with comments | « webrtc/modules/video_capture/mac/video_capture_mac.mm ('k') | webrtc/modules/video_capture/video_capture_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698