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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.cc

Issue 1163943004: Make SharedMemoryHandle a class on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shared_memory_make_class3_base
Patch Set: Remove more unused headers that magically appeared from rebase. Created 5 years, 6 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 | « base/memory/shared_memory_win.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index 70195ba669ac859e202cb70fe184642023eef927..23a63730fd9498c306e1296b1299e132f2ad26b0 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -70,7 +70,11 @@ class SimpleBufferHandle final : public VideoCaptureBufferPool::BufferHandle {
ClientBuffer AsClientBuffer() override { return nullptr; }
#if defined(OS_POSIX)
base::FileDescriptor AsPlatformFile() override {
+#if defined(OS_MACOSX)
+ return handle_.GetFileDescriptor();
+#else
return handle_;
+#endif // defined(OS_MACOSX)
}
#endif
@@ -102,7 +106,11 @@ class GpuMemoryBufferBufferHandle
ClientBuffer AsClientBuffer() override { return gmb_->AsClientBuffer(); }
#if defined(OS_POSIX)
base::FileDescriptor AsPlatformFile() override {
+#if defined(OS_MACOSX)
+ return gmb_->GetHandle().handle.GetFileDescriptor();
+#else
return gmb_->GetHandle().handle;
+#endif // defined(OS_MACOSX)
}
#endif
« no previous file with comments | « base/memory/shared_memory_win.cc ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698