OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 6 // |
| 7 // This is an early draft of background thread support. |
| 8 // Until it is complete, we assume that all functions proxy functions |
| 9 // (but CallOnMainThread) are called on the main thread. |
| 10 // |
| 11 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING |
| 12 |
| 13 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_UPCALL_H_ |
| 14 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_UPCALL_H_ |
| 15 |
| 16 #include "ppapi/c/pp_completion_callback.h" |
| 17 #include "ppapi/c/pp_resource.h" |
| 18 |
| 19 namespace ppapi_proxy { |
| 20 |
| 21 // Initialize the plugin side to allow upcalls (calls to the browser from |
| 22 // other than the PPAPI main thread). |
| 23 int32_t PluginUpcallStartup(); |
| 24 |
| 25 // Shut down the plugin side for upcalls. |
| 26 void PluginUpcallShutdown(); |
| 27 |
| 28 // The upcall for PPB_Core.CallOnMainThread. |
| 29 void PluginUpcallCoreCallOnMainThread(int32_t delay_in_milliseconds, |
| 30 PP_CompletionCallback callback, |
| 31 int32_t result); |
| 32 |
| 33 // The upcall for PPB_Graphics2D.Flush. |
| 34 int32_t PluginUpcallGraphics2DFlush(PP_Resource graphics_2d, |
| 35 PP_CompletionCallback callback); |
| 36 |
| 37 } // namespace ppapi_proxy |
| 38 |
| 39 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_UPCALL_H_ |
OLD | NEW |