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

Unified Diff: webrtc/modules/video_capture/external/video_capture_external.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/external/video_capture_external.cc
diff --git a/webrtc/modules/video_capture/external/video_capture_external.cc b/webrtc/modules/video_capture/external/video_capture_external.cc
index 29b161263c8d8d0f7c3c5cb9fa9d3703ea320170..d636eeeef126c33a23f3159754aa10eee6fcc8b2 100644
--- a/webrtc/modules/video_capture/external/video_capture_external.cc
+++ b/webrtc/modules/video_capture/external/video_capture_external.cc
@@ -8,19 +8,17 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include "webrtc/base/refcount.h"
#include "webrtc/modules/video_capture/video_capture_impl.h"
-#include "webrtc/system_wrappers/include/ref_count.h"
namespace webrtc {
namespace videocapturemodule {
-VideoCaptureModule* VideoCaptureImpl::Create(
+rtc::scoped_refptr<VideoCaptureModule> VideoCaptureImpl::Create(
const int32_t id,
const char* deviceUniqueIdUTF8) {
- RefCountImpl<VideoCaptureImpl>* implementation =
- new RefCountImpl<VideoCaptureImpl>(id);
- return implementation;
+ return new rtc::RefCountedObject<VideoCaptureImpl>(id);
}
} // namespace videocapturemodule
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/forward_error_correction.h ('k') | webrtc/modules/video_capture/ios/video_capture_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698