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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h

Issue 10837350: Revert 152406 - Introduce shared_memory_support media target for PPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h (revision 152430)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h (working copy)
@@ -81,6 +81,14 @@
// PPAPI constants used in the proxy.
extern const PP_Resource kInvalidResourceId;
+// The following function TotalSharedMemorySizeInBytes, is copied & similar
+// to the one in audio_util.cc. This function includes optional fields
+// stored at the end of the audio buffer.
+inline size_t TotalAudioSharedMemorySizeInBytes(size_t audio_buffer_size) {
+ // Include optional field that communicates the number of bytes written.
+ return audio_buffer_size + sizeof(uint32_t);
+}
+
} // namespace ppapi_proxy
#endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GLOBALS_H_
Property changes on: ppapi/native_client/src/shared/ppapi_proxy/plugin_globals.h
___________________________________________________________________
Added: svn:mergeinfo

Powered by Google App Engine
This is Rietveld 408576698