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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_upcall.h

Issue 7740013: Cloning a bunch of stuff from the native_client repository at r6528 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698