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

Issue 7887002: Update the Chromium version of webrtc::VideoCaptureModule to be reference counted. (Closed)

Created:
9 years, 3 months ago by perkj_chrome
Modified:
9 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, dpranke+watch-content_chromium.org, jam, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Update the Chromium version of webrtc::VideoCaptureModule to be reference counted. The reason is to be able to share ownership between PeerConnection and Chromium. TEST= BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102286

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M content/renderer/media/video_capture_module_impl.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_module_impl.cc View 1 3 chunks +18 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
perkj_chrome
Can you please review this?
9 years, 3 months ago (2011-09-13 07:55:34 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/7887002/diff/1/content/renderer/media/video_capture_module_impl.h File content/renderer/media/video_capture_module_impl.h (right): http://codereview.chromium.org/7887002/diff/1/content/renderer/media/video_capture_module_impl.h#newcode27 content/renderer/media/video_capture_module_impl.h:27: virtual int32_t AddRef(); is this actually an interface that ...
9 years, 3 months ago (2011-09-13 15:22:58 UTC) #2
wjia(left Chromium)
webrtc::videocapturemodule::VideoCaptureImpl will have AddRef and ReleaseRef in webrtc r580. lgtm, after scherkus's comments are addressed.
9 years, 3 months ago (2011-09-13 18:13:43 UTC) #3
wjia(left Chromium)
by the way, since you need add "OVERRIDE" to AddRef and ReleaseRef after chromium has ...
9 years, 3 months ago (2011-09-13 18:18:35 UTC) #4
perkj_chrome
http://codereview.chromium.org/7887002/diff/1/content/renderer/media/video_capture_module_impl.h File content/renderer/media/video_capture_module_impl.h (right): http://codereview.chromium.org/7887002/diff/1/content/renderer/media/video_capture_module_impl.h#newcode27 content/renderer/media/video_capture_module_impl.h:27: virtual int32_t AddRef(); Yes- it is part of the ...
9 years, 3 months ago (2011-09-19 11:14:21 UTC) #5
scherkus (not reviewing)
9 years, 3 months ago (2011-09-19 17:42:54 UTC) #6
LGTM -- thanks for the explanation

I'm a little surprised that WebRTC doesn't provide a default implementation and
that we have to duplicate refcounting code

http://codereview.chromium.org/7887002/diff/4001/content/renderer/media/video...
File content/renderer/media/video_capture_module_impl.cc (right):

http://codereview.chromium.org/7887002/diff/4001/content/renderer/media/video...
content/renderer/media/video_capture_module_impl.cc:49: VLOG(1) <<
"VideoCaptureModuleImpl::AddRef()";
I'd get rid of these VLOGs -- they don't add much value and
WebRtcAudioDeviceImpl doesn't have any either

http://codereview.chromium.org/7887002/diff/4001/content/renderer/media/video...
content/renderer/media/video_capture_module_impl.cc:54: VLOG(1) <<
"VideoCaptureModuleImpl::Release()";
ditto

Powered by Google App Engine
This is Rietveld 408576698