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

Issue 9965080: Change the cpp wrappers of audio input/video capture to use CompletionCallbackWithOutput. (Closed)

Created:
8 years, 8 months ago by yzshen1
Modified:
8 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, viettrungluu
Visibility:
Public.

Description

Change the cpp wrappers of audio input/video capture to use CompletionCallbackWithOutput. And also fix a few bugs in the PP_ArrayOutput and CallbackWithOutput code. - Make sure POD members of Dispatcher\.* are properly initialized. - Avoid leaking var/resource references in DispatcherWithOutput\.*::operator(). BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130849

Patch Set 1 #

Patch Set 2 : Don't use CompletionCallbackFactory in cpp wrappers. #

Patch Set 3 : Avoid extra copies in Dispatcher*::operator(). #

Total comments: 8

Patch Set 4 : More changes in response to Brett's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -263 lines) Patch
M ppapi/cpp/array_output.h View 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/cpp/array_output.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/audio_input_dev.h View 1 2 3 4 chunks +10 lines, -23 lines 0 comments Download
M ppapi/cpp/dev/audio_input_dev.cc View 1 2 3 7 chunks +11 lines, -96 lines 0 comments Download
M ppapi/cpp/dev/resource_array_dev.h View 1 2 3 3 chunks +33 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/resource_array_dev.cc View 1 2 3 2 chunks +30 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/video_capture_dev.h View 1 2 3 2 chunks +5 lines, -20 lines 0 comments Download
M ppapi/cpp/dev/video_capture_dev.cc View 1 2 3 5 chunks +10 lines, -90 lines 0 comments Download
M ppapi/cpp/output_traits.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/examples/audio_input/audio_input.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M ppapi/examples/video_capture/video_capture.cc View 1 3 chunks +10 lines, -5 lines 0 comments Download
M ppapi/utility/completion_callback_factory.h View 1 2 3 10 chunks +86 lines, -22 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
yzshen1
Hi, Brett: Would you please take a look? Thanks! Trung FYI: I am going to ...
8 years, 8 months ago (2012-04-02 21:22:22 UTC) #1
yzshen1
Hmm.. I just realized that there is a deps violation to use CompletionCallbackFactory in the ...
8 years, 8 months ago (2012-04-02 21:54:31 UTC) #2
brettw
I was trying to avoid using utility in the C++ layer. You can see what ...
8 years, 8 months ago (2012-04-03 17:34:21 UTC) #3
yzshen1
On 2012/04/03 17:34:21, brettw wrote: > I was trying to avoid using utility in the ...
8 years, 8 months ago (2012-04-03 17:58:46 UTC) #4
yzshen1
Hi, Brett. Would you please take another look? Thanks!
8 years, 8 months ago (2012-04-03 21:00:25 UTC) #5
brettw
http://codereview.chromium.org/9965080/diff/4016/ppapi/cpp/dev/audio_input_dev.h File ppapi/cpp/dev/audio_input_dev.h (right): http://codereview.chromium.org/9965080/diff/4016/ppapi/cpp/dev/audio_input_dev.h#newcode94 ppapi/cpp/dev/audio_input_dev.h:94: // Heap-allocated data passed to the CallbackConverter for backward ...
8 years, 8 months ago (2012-04-03 21:23:03 UTC) #6
yzshen1
Thanks, Brett! Please take another look. http://codereview.chromium.org/9965080/diff/4016/ppapi/cpp/dev/audio_input_dev.h File ppapi/cpp/dev/audio_input_dev.h (right): http://codereview.chromium.org/9965080/diff/4016/ppapi/cpp/dev/audio_input_dev.h#newcode94 ppapi/cpp/dev/audio_input_dev.h:94: // Heap-allocated data ...
8 years, 8 months ago (2012-04-04 00:36:34 UTC) #7
brettw
lgtm
8 years, 8 months ago (2012-04-04 03:36:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9965080/2005
8 years, 8 months ago (2012-04-04 05:36:09 UTC) #9
commit-bot: I haz the power
Try job failure for 9965080-2005 (retry) on win_rel for steps "browser_tests, unit_tests". It's a second ...
8 years, 8 months ago (2012-04-04 08:44:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9965080/2005
8 years, 8 months ago (2012-04-04 15:45:21 UTC) #11
commit-bot: I haz the power
Try job failure for 9965080-2005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-04 16:53:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9965080/2005
8 years, 8 months ago (2012-04-04 17:12:15 UTC) #13
commit-bot: I haz the power
Try job failure for 9965080-2005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-04 18:20:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9965080/2005
8 years, 8 months ago (2012-04-04 19:47:19 UTC) #15
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 8 months ago (2012-04-05 00:48:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/9965080/2005
8 years, 8 months ago (2012-04-05 04:50:10 UTC) #17
commit-bot: I haz the power
8 years, 8 months ago (2012-04-05 07:11:00 UTC) #18
Change committed as 130849

Powered by Google App Engine
This is Rietveld 408576698