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

Unified Diff: components/exo/wayland/server.cc

Issue 2875453002: Add a size parameter to SharedMemoryHandle. (Closed)
Patch Set: Fix IPC on POSIX. Created 3 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
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index f9e941da840ce4a4db98c19824b4b049824e44cb..9e26b6498265948e2fd80bccd7b0e82b78660bd7 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -444,7 +444,7 @@ void shm_create_pool(wl_client* client,
int32_t size) {
std::unique_ptr<SharedMemory> shared_memory =
GetUserDataAs<Display>(resource)->CreateSharedMemory(
- base::SharedMemoryHandle::ImportHandle(fd), size);
+ base::SharedMemoryHandle::ImportHandle(fd, size), size);
if (!shared_memory) {
wl_resource_post_no_memory(resource);
return;

Powered by Google App Engine
This is Rietveld 408576698