Chromium Code Reviews| Index: ppapi/proxy/plugin_main_nacl.cc |
| =================================================================== |
| --- ppapi/proxy/plugin_main_nacl.cc (revision 148096) |
| +++ ppapi/proxy/plugin_main_nacl.cc (working copy) |
| @@ -23,6 +23,7 @@ |
| #include "ppapi/c/ppp_instance.h" |
| #include "ppapi/proxy/plugin_dispatcher.h" |
| #include "ppapi/proxy/plugin_globals.h" |
| +#include "ppapi/shared_impl/ppb_audio_shared.h" |
| #if defined(IPC_MESSAGE_LOG_ENABLED) |
| #define IPC_MESSAGE_MACROS_LOG_ENABLED |
| @@ -38,8 +39,6 @@ |
| namespace { |
| -struct PP_ThreadFunctions thread_funcs; |
| - |
| // Copied from src/content/ppapi_plugin/ppapi_thread. This is a minimal |
| // implementation to get us started. |
| class PluginDispatcherDelegate : public PluginDispatcher::PluginDelegate { |
| @@ -101,8 +100,10 @@ |
| } // namespace |
| void PpapiPluginRegisterThreadCreator( |
| - const struct PP_ThreadFunctions* new_funcs) { |
| - thread_funcs = *new_funcs; |
| + const struct PP_ThreadFunctions* thread_functions) { |
| + // Initialize all classes that need to create threads that call back into |
| + // user code. |
| + ppapi::PPB_Audio_Shared::SetThreadFunctions(thread_functions); |
|
bbudge
2012/07/24 20:10:46
We have to call down to shared code rather than th
|
| } |
| int IrtInit() { |