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

Issue 10809079: Modify the PPB_Audio_Shared code for NaCl. (Closed)

Created:
8 years, 5 months ago by bbudge
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Modify the PPB_Audio_Shared code for NaCl. BUG=116317 TEST=none This adds code for the NaCl untrusted build of the PPAPI proxy. The NaCl IRT can't create threads that call back into user code, so the Audio thread must be created using a special NaCl API. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148423

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -5 lines) Patch
M ppapi/proxy/plugin_main_nacl.cc View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M ppapi/shared_impl/DEPS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.h View 1 2 3 4 5 3 chunks +16 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.cc View 1 2 3 4 5 4 chunks +55 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
bbudge
http://codereview.chromium.org/10809079/diff/7001/ppapi/proxy/plugin_main_nacl.cc File ppapi/proxy/plugin_main_nacl.cc (right): http://codereview.chromium.org/10809079/diff/7001/ppapi/proxy/plugin_main_nacl.cc#newcode106 ppapi/proxy/plugin_main_nacl.cc:106: ppapi::PPB_Audio_Shared::SetThreadFunctions(thread_functions); We have to call down to shared code ...
8 years, 5 months ago (2012-07-24 20:10:46 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/10809079/diff/7001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): http://codereview.chromium.org/10809079/diff/7001/ppapi/shared_impl/ppb_audio_shared.cc#newcode16 ppapi/shared_impl/ppb_audio_shared.cc:16: PP_ThreadFunctions thread_functions; Later on, you're relying on it getting ...
8 years, 5 months ago (2012-07-24 20:55:21 UTC) #2
bbudge
http://codereview.chromium.org/10809079/diff/7001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): http://codereview.chromium.org/10809079/diff/7001/ppapi/shared_impl/ppb_audio_shared.cc#newcode16 ppapi/shared_impl/ppb_audio_shared.cc:16: PP_ThreadFunctions thread_functions; On 2012/07/24 20:55:21, dmichael wrote: > Later ...
8 years, 5 months ago (2012-07-24 21:15:44 UTC) #3
nfullagar
I believe the clearing was some defensive programming - if the callback isn't fired in ...
8 years, 5 months ago (2012-07-24 21:28:43 UTC) #4
bbudge
On 2012/07/24 21:28:43, nfullagar wrote: > I believe the clearing was some defensive programming - ...
8 years, 5 months ago (2012-07-24 23:07:24 UTC) #5
dmichael (off chromium)
lgtm http://codereview.chromium.org/10809079/diff/13007/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): http://codereview.chromium.org/10809079/diff/13007/ppapi/shared_impl/ppb_audio_shared.cc#newcode48 ppapi/shared_impl/ppb_audio_shared.cc:48: thread_id_(), It would be clearer to put 0 ...
8 years, 5 months ago (2012-07-25 03:12:26 UTC) #6
bbudge
8 years, 5 months ago (2012-07-25 12:04:37 UTC) #7
http://codereview.chromium.org/10809079/diff/13007/ppapi/shared_impl/ppb_audi...
File ppapi/shared_impl/ppb_audio_shared.cc (right):

http://codereview.chromium.org/10809079/diff/13007/ppapi/shared_impl/ppb_audi...
ppapi/shared_impl/ppb_audio_shared.cc:48: thread_id_(),
On 2012/07/25 03:12:26, dmichael wrote:
> It would be clearer to put 0 in explicitly.

I copied it from the SRPC code because I thought it nicely captured the
"don't-care" nature of this. OK. Done.

Powered by Google App Engine
This is Rietveld 408576698