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

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

Issue 10826296: Introduce shared_memory_support media target for PPAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_
7 7
8 #include "ppapi/c/dev/ppb_memory_dev.h" 8 #include "ppapi/c/dev/ppb_memory_dev.h"
9 #include "ppapi/c/dev/ppp_find_dev.h" 9 #include "ppapi/c/dev/ppp_find_dev.h"
10 #include "ppapi/c/dev/ppp_printing_dev.h" 10 #include "ppapi/c/dev/ppp_printing_dev.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const PPP_Printing_Dev* PPPPrintingInterface(); 70 const PPP_Printing_Dev* PPPPrintingInterface();
71 const PPP_Selection_Dev* PPPSelectionInterface(); 71 const PPP_Selection_Dev* PPPSelectionInterface();
72 const PPP_Zoom_Dev* PPPZoomInterface(); 72 const PPP_Zoom_Dev* PPPZoomInterface();
73 73
74 // Get thread creation/join functions. 74 // Get thread creation/join functions.
75 const struct PP_ThreadFunctions* GetThreadCreator(); 75 const struct PP_ThreadFunctions* GetThreadCreator();
76 76
77 // PPAPI constants used in the proxy. 77 // PPAPI constants used in the proxy.
78 extern const PP_Resource kInvalidResourceId; 78 extern const PP_Resource kInvalidResourceId;
79 79
80 // The following function TotalSharedMemorySizeInBytes, is copied & similar
81 // to the one in audio_util.cc. This function includes optional fields
82 // stored at the end of the audio buffer.
83 inline size_t TotalAudioSharedMemorySizeInBytes(size_t audio_buffer_size) {
84 // Include optional field that communicates the number of bytes written.
85 return audio_buffer_size + sizeof(uint32_t);
86 }
87
88 } // namespace ppapi_proxy 80 } // namespace ppapi_proxy
89 81
90 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_ 82 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698