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

Unified Diff: chrome/renderer/pepper/pepper_pdf_host.cc

Issue 13529027: Switch Linux Auru ports over to POSIX SHM instead of legacy SYSV SHM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pepper_pdf_host.cc
===================================================================
--- chrome/renderer/pepper/pepper_pdf_host.cc (revision 200710)
+++ chrome/renderer/pepper/pepper_pdf_host.cc (working copy)
@@ -318,18 +318,18 @@
ppapi::host::ReplyMessageContext reply_context =
context->MakeReplyMessageContext();
-#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_ANDROID)
+#if defined(TOOLKIT_GTK)
+ // For GTK, we pass the SysV shared memory key in the message.
+ PpapiPluginMsg_PDF_GetResourceImageReply reply_msg(host_resource,
+ image_data_desc,
+ image_handle.fd);
+#elif defined(OS_POSIX) || defined(OS_WIN)
ppapi::proxy::SerializedHandle serialized_handle;
PpapiPluginMsg_PDF_GetResourceImageReply reply_msg(host_resource,
image_data_desc,
0);
serialized_handle.set_shmem(image_handle, byte_count);
reply_context.params.AppendHandle(serialized_handle);
-#elif defined(OS_LINUX)
- // For Linux, we pass the SysV shared memory key in the message.
- PpapiPluginMsg_PDF_GetResourceImageReply reply_msg(host_resource,
- image_data_desc,
- image_handle.fd);
#else
// Not supported on the other platforms.
// This is a stub reply_msg not to break the build.
« no previous file with comments | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698