diff options
author | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 23:56:39 +0000 |
---|---|---|
committer | sehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 23:56:39 +0000 |
commit | 8d292399e6dcdfa776a1de94da07841bf1487f5b (patch) | |
tree | a70d24eccd67dd83092de47eae8388aa69245ff5 /third_party | |
parent | 9923b6dc2cb443d5c8c10fa4a33746cd284fb9bb (diff) | |
download | chromium_src-8d292399e6dcdfa776a1de94da07841bf1487f5b.zip chromium_src-8d292399e6dcdfa776a1de94da07841bf1487f5b.tar.gz chromium_src-8d292399e6dcdfa776a1de94da07841bf1487f5b.tar.bz2 |
Audio support for native client requires some additional features
from pepper. Notably, the existing pepper implementation was, by
default, creating a high-priority producer thread. For the NaCl
version this thread should be in the NaCl module, and hence we
need to separate thread creation from pre-filling with the callback.
The latter is used to send an RPC to NaCl to pass the shared memory
and sync socket. Getting the shared memory was done by the first
reserved state value. Getting the sync socket required allocating
a second. Also changed the pepper test plugin to use the
new startThread member.
Review URL: http://codereview.chromium.org/593023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/npapi/bindings/npapi_extensions.h | 1 | ||||
-rw-r--r-- | third_party/npapi/bindings/npapi_extensions_private.h | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h index 4bfac2c..fca509e 100644 --- a/third_party/npapi/bindings/npapi_extensions.h +++ b/third_party/npapi/bindings/npapi_extensions.h @@ -398,6 +398,7 @@ typedef struct _NPDeviceContextAudioConfig { int32 outputChannelMap; int32 inputChannelMap; int32 sampleFrameCount; + uint32 startThread; uint32 flags; NPAudioCallback callback; void *userData; diff --git a/third_party/npapi/bindings/npapi_extensions_private.h b/third_party/npapi/bindings/npapi_extensions_private.h index ea84024..b333d21 100644 --- a/third_party/npapi/bindings/npapi_extensions_private.h +++ b/third_party/npapi/bindings/npapi_extensions_private.h @@ -10,9 +10,12 @@ // Some reserved GetStateContext/SetStateContext selectors. typedef enum { - NPExtensionsReservedStateSharedMemory = 66536 + NPExtensionsReservedStateSharedMemory = 66536, // Used by the Device2D and Audio devices to return a pointer to the // structure used to implement the shared memory buffer for the device. + NPExtensionsReservedStateSyncChannel = 66537 + // Used by the Audio device to return a pointer to the + // structure used to implement the synchronization channel for the device. } NPExtensionsReservedStates; #endif /* _NP_EXTENSIONS_PRIVATE_H_ */ |