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

Unified Diff: webrtc/modules/video_capture/objc/video_capture.mm

Issue 2534553002: Replace VideoCaptureDataCallback by VideoSinkInterface. (Closed)
Patch Set: Break overlong lines. Created 4 years 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/objc/video_capture.mm
diff --git a/webrtc/modules/video_capture/objc/video_capture.mm b/webrtc/modules/video_capture/objc/video_capture.mm
index e73b47ae0e2cbb1e9db6997687584e56f844df5e..bd3ba6af749da82d9a49abda9f4ab6b3fad4811a 100644
--- a/webrtc/modules/video_capture/objc/video_capture.mm
+++ b/webrtc/modules/video_capture/objc/video_capture.mm
@@ -22,13 +22,12 @@ using namespace webrtc;
using namespace videocapturemodule;
rtc::scoped_refptr<VideoCaptureModule> VideoCaptureImpl::Create(
- const int32_t capture_id,
const char* deviceUniqueIdUTF8) {
- return VideoCaptureIos::Create(capture_id, deviceUniqueIdUTF8);
+ return VideoCaptureIos::Create(deviceUniqueIdUTF8);
}
-VideoCaptureIos::VideoCaptureIos(const int32_t capture_id)
- : VideoCaptureImpl(capture_id), is_capturing_(false), id_(capture_id) {
+VideoCaptureIos::VideoCaptureIos()
+ : is_capturing_(false) {
capability_.width = kDefaultWidth;
capability_.height = kDefaultHeight;
capability_.maxFPS = kDefaultFrameRate;
@@ -43,14 +42,13 @@ VideoCaptureIos::~VideoCaptureIos() {
}
rtc::scoped_refptr<VideoCaptureModule> VideoCaptureIos::Create(
- const int32_t capture_id,
const char* deviceUniqueIdUTF8) {
if (!deviceUniqueIdUTF8[0]) {
return NULL;
}
rtc::scoped_refptr<VideoCaptureIos> capture_module(
- new rtc::RefCountedObject<VideoCaptureIos>(capture_id));
+ new rtc::RefCountedObject<VideoCaptureIos>());
const int32_t name_length = strlen(deviceUniqueIdUTF8);
if (name_length > kVideoCaptureUniqueNameLength)
@@ -61,8 +59,7 @@ rtc::scoped_refptr<VideoCaptureModule> VideoCaptureIos::Create(
capture_module->_deviceUniqueId[name_length] = '\0';
capture_module->capture_device_ =
- [[RTCVideoCaptureIosObjC alloc] initWithOwner:capture_module
- captureId:capture_module->id_];
+ [[RTCVideoCaptureIosObjC alloc] initWithOwner:capture_module];
if (!capture_module->capture_device_) {
return nullptr;
}
« no previous file with comments | « webrtc/modules/video_capture/objc/video_capture.h ('k') | webrtc/modules/video_capture/test/video_capture_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698