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

Unified Diff: base/memory/shared_memory_posix.cc

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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
Index: base/memory/shared_memory_posix.cc
diff --git a/base/memory/shared_memory_posix.cc b/base/memory/shared_memory_posix.cc
index 63b20f3b6485298caa5f7649c45e8b0d621a6899..b2f919c960098cbf663ed3676676062078b9b070 100644
--- a/base/memory/shared_memory_posix.cc
+++ b/base/memory/shared_memory_posix.cc
@@ -99,6 +99,15 @@ void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) {
DPLOG(ERROR) << "close";
}
+//static
+SharedMemoryHandle SharedMemory::DuplicateHandle(
+ const SharedMemoryHandle& handle) {
+ SharedMemoryHandle result;
+ result.fd = dup(handle.fd);
piman 2013/06/05 00:30:55 nit: HANDLE_EINTR
slavi 2013/06/06 23:02:47 Done.
+ result.auto_close = false;
piman 2013/06/05 00:30:55 nit: make that true It doesn't have an effect in m
slavi 2013/06/06 23:02:47 Done.
+ return result;
+}
+
// static
size_t SharedMemory::GetHandleLimit() {
return base::GetMaxFds();

Powered by Google App Engine
This is Rietveld 408576698