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

Unified Diff: ppapi/proxy/pdf_resource.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 | « content/renderer/webplugin_delegate_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/pdf_resource.cc
===================================================================
--- ppapi/proxy/pdf_resource.cc (revision 200710)
+++ ppapi/proxy/pdf_resource.cc (working copy)
@@ -182,13 +182,13 @@
#if defined(OS_ANDROID)
// This is compiled into android for tests only.
return 0;
-#elif defined(OS_WIN) || defined(OS_MACOSX)
+#elif defined(TOOLKIT_GTK)
+ return (new ImageData(resource, image_desc, fd))->GetReference();
+#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_MACOSX)
base::SharedMemoryHandle handle;
if (!reply_params.TakeSharedMemoryHandleAtIndex(0, &handle))
return 0;
return (new ImageData(resource, image_desc, handle))->GetReference();
-#elif defined(OS_LINUX)
- return (new ImageData(resource, image_desc, fd))->GetReference();
#else
#error Not implemented.
#endif
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698