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

Unified Diff: components/exo/wayland/clients/client_base.cc

Issue 2843113002: make base::SharedMemoryHandle a class on POSIX. (Closed)
Patch Set: Fix test error. Created 3 years, 8 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/clients/client_base.cc
diff --git a/components/exo/wayland/clients/client_base.cc b/components/exo/wayland/clients/client_base.cc
index 8c17ba56ed51b15fbaa3d47db39a00aed4b0b794..e604367854df7083a2fc12f0ae05ffcbeed2a4da 100644
--- a/components/exo/wayland/clients/client_base.cc
+++ b/components/exo/wayland/clients/client_base.cc
@@ -450,9 +450,9 @@ std::unique_ptr<ClientBase::Buffer> ClientBase::CreateBuffer(
size_t stride = width_ * kBytesPerPixel;
buffer->shared_memory.reset(new base::SharedMemory());
buffer->shared_memory->CreateAndMapAnonymous(stride * height_);
- buffer->shm_pool.reset(
- wl_shm_create_pool(globals_.shm.get(), buffer->shared_memory->handle().fd,
- buffer->shared_memory->requested_size()));
+ buffer->shm_pool.reset(wl_shm_create_pool(
+ globals_.shm.get(), buffer->shared_memory->handle().GetHandle(),
+ buffer->shared_memory->requested_size()));
buffer->buffer.reset(static_cast<wl_buffer*>(wl_shm_pool_create_buffer(
buffer->shm_pool.get(), 0, width_, height_, stride, kShmFormat)));

Powered by Google App Engine
This is Rietveld 408576698