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

Issue 371273004: Ensures that input Pepper Flash supports the newly added AudioBus interface (Closed)

Created:
6 years, 5 months ago by henrika (OOO until Aug 14)
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Ensures that input Pepper Flash supports the newly added AudioBus interface. This CL (https://codereview.chromium.org/344583002) has modified the data structure in shared memory and the original CL did not take the input side of Pepper Flash into account. Pepper Flash recording was therefore broken. This CL ensures that Pepper knows about the new audio structure and accounts for it using by mapping shared memory to an audio bus and then interleaves the data into a plain byte vector before sending it to the Pepper callback. Adding vrk@ as TBR for the added dependency in media. R=piman@chromium.org, xians@chromium.org TBR=vrk BUG=387303 TEST=www.youtube.com/my_webcam Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282357

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 22

Patch Set 3 : Changes based on feedback from piman@, tommi@ and xians@ #

Patch Set 4 : Now uses static_cast instead of reinterpret_cast #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -22 lines) Patch
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/audio_input_resource.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ppapi/proxy/audio_input_resource.cc View 1 2 3 7 chunks +59 lines, -22 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
henrika (OOO until Aug 14)
xians@: could you take a look, please.
6 years, 5 months ago (2014-07-08 14:21:11 UTC) #1
henrika (OOO until Aug 14)
6 years, 5 months ago (2014-07-08 14:28:39 UTC) #2
henrika (OOO until Aug 14)
piman@: I think I need your OK as owner. vrk@: I might need you OK ...
6 years, 5 months ago (2014-07-08 14:30:00 UTC) #3
no longer working on chromium
Henrik, great work to track down the problem :) https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (left): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#oldcode233 ppapi/proxy/audio_input_resource.cc:233: ...
6 years, 5 months ago (2014-07-08 15:33:48 UTC) #4
piman
https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); nit: static_cast instead of reinterpret_cast. https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); ...
6 years, 5 months ago (2014-07-08 17:48:36 UTC) #5
tommi (sloooow) - chröme
drive-by comment https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); On 2014/07/08 17:48:35, piman (slow to ...
6 years, 5 months ago (2014-07-09 09:32:11 UTC) #6
henrika (OOO until Aug 14)
Thanks. Adding some comments first. No real changes yet. https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode188 ppapi/proxy/audio_input_resource.cc:188: ...
6 years, 5 months ago (2014-07-09 09:39:51 UTC) #7
henrika (OOO until Aug 14)
https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode188 ppapi/proxy/audio_input_resource.cc:188: if (!shared_memory_->Map(shared_memory_size_)) { I followed the example on the ...
6 years, 5 months ago (2014-07-09 09:41:01 UTC) #8
henrika (OOO until Aug 14)
https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); Thanks Tommi; will stick to reinterpret unless piman@ ...
6 years, 5 months ago (2014-07-09 11:35:14 UTC) #9
henrika (OOO until Aug 14)
piman@ and xians@, PTAL. I have tried to account for all valuable feedback in PS3. ...
6 years, 5 months ago (2014-07-09 11:40:24 UTC) #10
no longer working on chromium
lgtm
6 years, 5 months ago (2014-07-09 12:54:03 UTC) #11
piman
On Wed, Jul 9, 2014 at 2:32 AM, <tommi@chromium.org> wrote: > drive-by comment > > ...
6 years, 5 months ago (2014-07-09 20:22:26 UTC) #12
tommi (sloooow) - chröme
Alright, I'll back down. In any case either cast would do the same thing here. ...
6 years, 5 months ago (2014-07-09 20:31:52 UTC) #13
piman
https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); On 2014/07/09 09:39:51, henrika (OOO June 23-July 7) ...
6 years, 5 months ago (2014-07-09 20:36:28 UTC) #14
henrika (OOO until Aug 14)
Thanks for the detailed explanation. I have changed from reinterpret to static now.
6 years, 5 months ago (2014-07-10 09:36:15 UTC) #15
henrika (OOO until Aug 14)
https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc File ppapi/proxy/audio_input_resource.cc (right): https://codereview.chromium.org/371273004/diff/40001/ppapi/proxy/audio_input_resource.cc#newcode197 ppapi/proxy/audio_input_resource.cc:197: reinterpret_cast<media::AudioInputBuffer*>(shared_memory_->memory()); We are fine since the trusted process only ...
6 years, 5 months ago (2014-07-10 09:50:16 UTC) #16
piman
LGTM, thanks
6 years, 5 months ago (2014-07-10 15:36:30 UTC) #17
henrika (OOO until Aug 14)
Many thanks for the fast reply ;-)
6 years, 5 months ago (2014-07-10 15:40:47 UTC) #18
henrika (OOO until Aug 14)
The CQ bit was checked by henrika@chromium.org
6 years, 5 months ago (2014-07-10 15:41:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/henrika@chromium.org/371273004/80001
6 years, 5 months ago (2014-07-10 15:42:36 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 16:36:02 UTC) #21
henrika (OOO until Aug 14)
The CQ bit was unchecked by henrika@chromium.org
6 years, 5 months ago (2014-07-10 16:39:42 UTC) #22
henrika (OOO until Aug 14)
6 years, 5 months ago (2014-07-10 16:44:07 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 manually as r282357 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698